sudoers disaster
Robbo
ml at the-view.eclipse.co.uk
Wed Sep 28 20:58:00 UTC 2005
On Wed, 2005-09-28 at 13:38 -0700, Karl Hegbloom wrote:
> On Wed, 2005-09-28 at 21:27 +0100, Robbo wrote:
> > login as the user your know that should have admin rights and type in
> > groups and check if "admin" is listed. If it isn't you'll need to add
> > it using "usermod -G admin username".
>
> No, that's wrong. Use:
> adduser username admin
>
> The 'usermod' command above will remove that user from all groups but
> 'admin'. That's not quite what you want. You want them to stay in all
> of the groups they are in, plus 'admin'.
>
> See: man adduser, adduser --help, man deluser, deluser --help, man
> useradd, man groupadd, groupadd --help, man usermod, man groupadd, man
> groupmod.
I stand corrected...
More information about the ubuntu-users
mailing list