You are not logged in.

#1 2008-03-02 12:44:22

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Groups question, beginners wiki.

Hi i've got a quick question, should I add my user to the group "users" after a reinstall and following the beginners guide under "Add a user and setup groups" it says to add my user to these groups:

usermod -aG audio,video,floppy,lp,optical,network,storage,wheel USERNAME

But it says nothing about the group, "users".

Under http://wiki.archlinux.org/index.php/Groups it says the following about the "users" group,

users = default users group (recommended)

So i'm guessing i should add my user to the users group and I or someone should change the beginners guide to include the group "users" when you set groups like so..

usermod -aG audio,video,floppy,lp,optical,network,storage,wheel,users USERNAME

Is this correct?

Offline

#2 2008-03-02 13:06:12

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Groups question, beginners wiki.

Your user certainly should be in the 'users' group - are you sure you aren't _already_ in that group, and the usermod command is just adding additional groups?

Offline

#3 2008-03-02 13:12:10

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Re: Groups question, beginners wiki.

Cerebral wrote:

Your user certainly should be in the 'users' group - are you sure you aren't _already_ in that group, and the usermod command is just adding additional groups?

Oh, strange i've just rechecked /etc/groups and nope i'm not already in that group.

/etc/group reads as follows..

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,ash
ftp::11:
mail::12:
log::19:root
smmsp::25:
games::50:ash
network:x:90:ash
video:x:91:ash
audio::92:ash,mpd
optical::93:ash,hal
floppy:x:94:hal
storage:x:95:ash,hal
power:x:98:
nobody::99:
users::100:
locate:x:21:
dbus:x:81:
hal:x:82:
avahi:x:84:
mpd:x:45:

I'll do a "usermod -aG users ash", also does my /etc/groups look ok to you is there any other groups I should be a part of by default?

Last edited by Breakage (2008-03-02 13:14:43)

Offline

#4 2008-03-02 13:16:10

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Groups question, beginners wiki.

You'll know if you need to be part of  group when you get a permission denied error, you don't have to get it all right off the bat.  :-)

Dusty

Offline

#5 2008-03-02 13:20:51

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Re: Groups question, beginners wiki.

Ok, thanks Cerebral & Dusty.

Offline

#6 2008-03-02 13:21:22

Rumor
Member
From: Albany, NY
Registered: 2006-07-07
Posts: 638

Re: Groups question, beginners wiki.

I am quite certain that your new user is automatically added to the users group. the other groups are added (if you so choose) in the next step.

Login as your user. What is the output of the groups command?

[matthew@mushroom ~]$ groups
disk wheel log network video audio optical storage power users

Smarter than a speeding bullet
My Goodreads profile

Offline

#7 2008-03-02 13:37:29

Breakage
Member
From: London
Registered: 2008-02-12
Posts: 198
Website

Re: Groups question, beginners wiki.

Rumor wrote:

I am quite certain that your new user is automatically added to the users group. the other groups are added (if you so choose) in the next step.

Login as your user. What is the output of the groups command?

[matthew@mushroom ~]$ groups
disk wheel log network video audio optical storage power users

On my last install I as far a I can remember my user account was in the groups users, as I look back now then this must have been done automatically. But with this new install (ftp iso) I had the /tmp bug, so I had to 'chmod 1777 tmp' and on this install when I done 'adduser' to make the account then added groups I double checked with 'groups ash' and I can remember that 'users' was not there.

I've just added this user account to users and now the output of the command 'groups' is the following..

ash@breakage:~ $ groups
wheel games network video audio optical storage users

Offline

Board footer

Powered by FluxBB