February 13, 2012
Linux : Add user to sudo
Linux : Add user to sudo
When using Ubuntu Linux, I can run root command with adding sudo before command parameter. But, when I use Centos, I can not run sudo command. I get This error when try to running sudo command :
[toto@data]$ sudo toto [sudo] password for toto: toto is not in the sudoers file. This incident will be reported.
This is because toto is not sudoers group. We must add group toto to sudoers file.
We can Add user to sudo with edit /etc/sudoers file. Login as root and open this file. Example, I want to add user sudo with group toto, so I can add this line :
toto ALL=(ALL) ALL
Save this file and log off. So, try to use sudo command 🙂
9 Comments
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good. https://accounts.binance.bh/register/person?ref=IHJUI7TF
I stumbled across bd3666bd while searching for new live dealer options and I am really impressed by the variety. The dealers are super friendly and the chat function works perfectly without any lag. Deposits go through instantly and I never had any issues cashing out my winnings. bd3666bd
I have been looking for a reliable gaming platform for quite some time and finally found one that actually delivers on its promises. The interface is super smooth and customer support is always ready to help. Highly recommend giving it a try. bdcxbet
This site really understands what we local players want. The sportsbook covers every major league and the odds are super competitive. Deposits through local payment methods are instant and I never worry about my account safety. A solid pick for anyone looking to place bets comfortably ngsportgambler
Top quality service and a very clean layout. I feel safe using this platform and the rewards are actually fair. Big thumbs up for idsenopati4.
The CentOS example clearly explains why “toto is not in the sudoers file” appears and shows the direct /etc/sudoers entry. It’s also a useful reminder to document system changes; Reference2Video could turn this workflow into a visual tutorial using terminal screenshots and reference media.
reference to video
Finally found a site that doesnt lag during peak hours. The login is quick and everything just works perfectly. sanur999login
The CentOS example makes the “not in the sudoers file” error easy to understand, especially the reminder to edit /etc/sudoers as root and log out afterward. In a similar workflow-focused spirit, Pitch Changer runs locally in the browser, letting you preview pitch and tempo changes and export a WAV without uploading audio.
audio pitch changer