[nzlug] OMG, I can no longer run 'sudo' !

Craig Box craig at dubculture.co.nz
Sat Aug 12 11:54:03 NZST 2006


> sudo usermod -a sid sid
> sudo usermod -a adm sid
> sudo usermod -a dialout sid

No, you do usermod -a -G.  First of all type 'man usermod' to make sure
you're comfortable with what you're doing.  I in no way wish to disclaim
responsibility, but you should always look up commands you're told to
run on the 'net first.

> By the way, one of the thing I tried to fix this was to boot as
> recovery then type visudo and add the following line:
> 
> sid ALL=(ALL) ALL
> 
> then I did 'sudo usermod -G admin sid'
> 
> now I can do sudo, but perhaps I should remove the visudo line?
> 
> All this shell commands making me feel like Im a hacker already :P

Try and put everything back the way it was.  If you're back in the admin
group, you can remove the specific line there for user sid.  You can of
course leave it there and it will cause no harm.

Craig





More information about the NZLUG mailing list