[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to use sudo not root



On 15/06/06, Joseph Smidt <jsmidt@byu.edu> wrote:
When I installed Debian I selected to not allow root login thinking that
would enable sudo and disable root.  But when I logged into gnome it
kept asking for the root password to do admin things, so I set a root
password and it works.
   However, I would like to disable root and have it so my sudo password
works for all the gnome admin things, like opening synaptic.  How do I
do that?  Thanks.
                        Joseph Smidt

I think you should login as root and run the commands:

usermod -G $USER $GROUPS,adm
visudo

# Members of the admin group may gain root privileges
%adm ALL=(ALL) ALL

And then delete the password from root from your /etc/passwd and
/etc/shadow files
=second field


--------------------------------------------------------------------------------
Joseph Smidt
jsmidt@byu.edu



Reply to: