sudoers disaster
Janne Jokitalo
janne.jokitalo at dnainternet.net
Wed Sep 28 19:44:34 UTC 2005
R.L. Reingard wrote:
>
> Hello all,
Hi there!
> i guess i did make a great mistake.
> cause of the ongoing discussion on Root/Sudo/Passwords, i made an other
> user, put this new user into the group 'Admin' and tested if this new
> user can use sudo with its own password. test was okay.
Have you created such a group? It isn't there by default. 'adm' I have, but
not admin.
> then i took the default user (which had sudo rights) out of the group
> 'Admin' and tested if the default user cannot anymore use sudo. test
> passed.
> then i switched to the new user AND ... now a sudo with the new users
> password FAILED.
Well, if your /etc/sudoers file is in its original state, the group 'adm'
isn't mentioned there. Thus I think adding a user to said group wouldn't
give this user sudoer rights. Plus I wonder how that group came there in the
first place.
> no a have two user accounts AND none of them has sudoers rights.
> what the hack is that?
> please help,
Check if you can boot into single-user mode, and work your default or the
other user into /etc/sudoers. The syntax as created by default is:
# User privilege specification
<username> ALL=(ALL) ALL
Hope this sorts it out.
--
Jaska
More information about the ubuntu-users
mailing list