Administration screens gone..

Bob Nielsen nielsen at oz.net
Wed May 31 05:30:12 UTC 2006


>
> On Tue, 2006-05-30 at 21:40 -0700, Matthew Kuiken wrote:
>
>>> Secondly, it may have happened while adding another user with admin
>>> rights.. and ended up with nobody with sudo/admin rights!  I  
>>> managed to
>>> correct this by going into recovery mode and so a 'visudo' to  
>>> update the
>>> sudoers file and adding my username as (ALL) ALL (same as root).
>>>
>>> So after that I can sudo again, but my admin screens are still gone.
>>> What can be my next step to fix this?
>
>> Is your user still a member of group admin?
>
> I'm not sure.. I also lost the 'Users and Groups' screen so I can't
> really check.  If I check the /etc/passwd file then the main group is
> the same as the username.
>
> I guess I should do a:
>
>   sudo usermod <my_username> --groups admin --append
>

The groups command will show which groups you belong to.  The /etc/ 
group file lists the members of each group.

There a number of ways to add a user to a group.  I usually use 'sudo  
adduser <username> <groupname>'.




More information about the ubuntu-users mailing list