username is not in sudoers folder
Fred Roller
fredroller66 at gmail.com
Wed Jun 12 12:37:34 UTC 2013
On 06/10/2013 09:38 PM, Joe Zeff wrote:
> On 06/10/2013 06:10 PM, Doug wrote:
>> You need to edit the sudoers file. You should find a copy that works
>> and make yours look like that. (Hint: you need to add a line with
>> your user name and the word ALL in it.) You can edit it with any
>> editor, or if you know vi, then you can use visudo. You will have to
>> have admin privileges to do this, so if you can't su to root, you
>> will need to find out how to do that, first.
>
> And of course, if you can do that, you don't need sudo. To me, sudo
> is a fine tool if you want to give access to a few admin tools to
> people who don't (and shouldn't) know the root password. However, I
> can't see the point of using it if you're the person who installed
> Linux and created the root password.
For me personally, using sudo on a personal system is just best
practices since I administer other servers; discipline if you will.
Having done root and sudo at some point during my use of *nix the sudo
is not particularly inconvenient. If I have a few things to do as root
I will sudo. If I have several things to do as root I will su to root.
If I have root environment specific things I need to do I will su - or
login directly to root. I prefer not to stay there any longer than
necessary and for security my root pw tends to be, well... long. As
mentioned, it is the beauty of the *nix world. Do what works best for you.
Adding a user I simply edit the /etc/sudoers file with vi with the +
flag (so I don't have to scroll down so far) and add my user.
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
edited to:
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
user ALL=(ALL) ALL
This has worked for me.
Fred
More information about the users
mailing list