LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2007, 04:37 PM   #1
Four
Member
 
Registered: Aug 2005
Posts: 298

Rep: Reputation: 30
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:
usermod - Modifying existing user

Options:

* -d home directory
* -s starting program (shell)
* -p password
* -g (primary group assigned to the users)
* -G (Other groups the user belongs to)

Example: To add the group 'others' to the user roger
usermod -Gothers roger
Yes I tryed that

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!
 
Old 06-20-2007, 05:00 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
You can boot into single user mode...or you can sudo to su (this has worked for me at times):

Code:
sudo su -
it will prompt you for your users password.
 
Old 06-20-2007, 07:01 PM   #3
Four
Member
 
Registered: Aug 2005
Posts: 298

Original Poster
Rep: Reputation: 30
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.

Last edited by Four; 06-20-2007 at 07:02 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub help lost vista when installed kubuntu lozza1978 Linux - Newbie 11 05-21-2007 02:23 AM
Lost all sound on Kubuntu 6.06 leupi Ubuntu 3 08-26-2006 04:13 PM
lost internet connection, settings? - kubuntu 5,10 saf4 Linux - Networking 3 08-10-2006 01:24 AM
kubuntu lost internet connection every 30 sec. ice99 Debian 2 07-14-2006 11:42 AM
mysql root privilages lost automaticaly on a database asheesh.tyagi Linux - Newbie 3 02-21-2006 09:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration