You are not logged in.

#1 2005-04-30 21:47:29

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Add user to group trouble

**I may not post a lot but I'm in the irc channel for arch**

Ok here my issue
I've add users to groups before, etc...
So I want to add my self to the optical group and su in a term and edit /etc/group

add mine looks like

[matthew@linux ~]$ cat /etc/group
root::0:root
bin::1:root,bin,daemon
daemon::2:root,bin,daemon
sys::3:root,bin
adm::4:root,daemon
tty::5:
disk::6:root
lp::7:daemon
mem::8:
kmem::9:
wheel::10:root,matthew
ftp::11:
mail::12:
smmsp::25:
audio::92:root,matthew
optical::93:root,matthew
nobody::99:
users::100:
slocate:x:21:
video:x:91:matthew,root
floppy:x:94:
storage:x:95:
scanner:x:96:
media:x:102:matthew,root
special:x:103:matthew,root
httpd:x:104:matthew,root
samba:x:106:root,matthew,samba

I logout and login
and I'm still not added I check my the command 'id' and 'groups'

[matthew@linux ~]$ id
uid=1000(matthew) gid=100(users) groups=10(wheel),91(video),92(audio),100(users),102(media),103(special),104(httpd),106(samba)
[matthew@linux ~]$ groups
wheel video audio users media special httpd samba

"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

#2 2005-04-30 23:38:14

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Add user to group trouble

Instead of editing /etc/group, try:
gpasswd -a matthew optical

Offline

#3 2005-05-01 00:52:55

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Add user to group trouble

yeah, don't edit the file - it's shadowed, so you can't really edit it to get the same effect...

Offline

#4 2005-05-01 02:32:12

mezoko
Member
Registered: 2005-03-26
Posts: 310
Website

Re: Add user to group trouble

Snowman wrote:

Instead of editing /etc/group, try:
gpasswd -a matthew optical

thanks for the tip
it ended up I had to logout of vc/1 (term) and back in cause I didn't use gdm I feel so stupid


"The only thing we have to fear is fear itself." - Franklin D. Roosevelt

Offline

Board footer

Powered by FluxBB