I lost all my privilages [Kubuntu] [usermod]
I was using the usermod to add a group to myself. according to
http://www.ahinc.com/linux101/users....xisting%20user Quote:
sudo usermod -Gwww-data myuser and now the only group I'm in is www-data. I can't even sudo it back to normal. Is there anything I may do? root is disabled. Thank you! |
You can boot into single user mode...or you can sudo to su (this has worked for me at times):
Code:
sudo su - |
I tryed sudo su however that didn't work. What I did is just insert the ubuntu CD and boot from CD. Go into the file system on the hardrive and open
sudo vim /etc/group then just add myself to the proper groups. Restart and groups are back to normal yay :). the format of the groups is as follows group_name:x:group_number:user1,user2 .... here is an example www:x:1003:pika,flap where pika and flap are supposdably real names and part of the group www. I don't know whats with the x its just there. and that website above should be updated. since the users are not added but set. |
All times are GMT -5. The time now is 09:04 AM. |