Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
usermod disaster (closed)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
spatulax9
n00b
n00b


Joined: 11 Oct 2004
Posts: 2

PostPosted: Mon Oct 11, 2004 3:51 am    Post subject: usermod disaster (closed) Reply with quote

Hi All,
Here's my story. I installed a game and the ebuild reminded me that I have to be in the games group to run games. Well I was moving kind of fast so I guess I misinterpreted the man page and as root I typed 'usermod -G games brent' to put the user brent in the games group. I didn't get any messages so I figured no news was good news. Now I can't log into my root account. Any ideas?

Brent


Last edited by spatulax9 on Mon Oct 11, 2004 5:02 am; edited 1 time in total
Back to top
View user's profile Send private message
Coz
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2004
Posts: 99
Location: You wanna stalk me? :p Dominican republic

PostPosted: Mon Oct 11, 2004 4:25 am    Post subject: Reply with quote

From the man page:

-G group,[...]
A list of supplementary groups which the user is also a member
of. Each group is separated from the next by a comma, with no
intervening whitespace. The groups are subject to the same
restrictions as the group given with the -g option. If the user
is currently a member of a group which is not listed, the user
will be removed from the group.


Seems like you removed the root from the root group and stuff. I would suggest to boot from the Gentoo live CD (Most people install from it so I guess you have one) and modifiy manually your /etc/group file.

Here is mine:
Code:
root:x:0:root
bin:x:1:root,bin,daemon,coz
daemon:x:2:root,bin,daemon
sys:x:3:root,bin,adm
adm:x:4:root,adm,daemon
tty:x:5:coz
disk:x:6:root,adm,coz
lp:x:7:lp
mem:x:8:
kmem:x:9:
wheel:x:10:root,coz
floppy:x:11:root,coz
mail:x:12:mail,coz
news:x:13:news
uucp:x:14:uucp
man:x:15:man,coz
cron:x:16:cron,coz
console:x:17:coz
audio:x:18:coz
cdrom:x:19:coz
dialout:x:20:root
ftp:x:21:coz
sshd:x:22:
at:x:25:at
tape:x:26:root
video:x:27:root,coz
squid:x:31:squid
gdm:x:32:gdm
xfs:x:33:xfs
games:x:35:coz
named:x:40:named
mysql:x:60:


So you don´t get confused, there are only two users in my system, coz and root, and obviously coz doesn't has root privileges, so all the coz you see up there is for my user.

By the way, please edit the thread name in the rightmost part by adding (closed) including the () so it's easier to know it's fixed. If not add (open).
_________________
Ask smart questions and follow the guidelines to get your post answered|Answer a unanswered post!
Back to top
View user's profile Send private message
spatulax9
n00b
n00b


Joined: 11 Oct 2004
Posts: 2

PostPosted: Mon Oct 11, 2004 5:06 am    Post subject: fixed Reply with quote

Thanks for the info Coz and I apologize for not reading through the other posts. I read another related post and decided to use the LiveCD like you suggest, only I just tried to reset my password which didn't work. Turns out that I could login as root, but I couldn't 'su' as brent. Because of some PAM related stuff, my user has to be in the 'wheel' group. Editing 'etc/groups' and adding 'brent' to the wheel group worked.

Thanks,
Brent
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum