You are not logged in.

#1 2008-09-08 01:39:21

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

[Solved]How to list groups available

I added my own user to my Arch setup. How would I get a list of available groups so I could add my user to them?

Last edited by jordanwb (2008-09-08 02:01:18)

Offline

#2 2008-09-08 01:44:11

xorl
Member
From: San Diego
Registered: 2008-09-08
Posts: 3
Website

Re: [Solved]How to list groups available

Easiest way is to cat /etc/group and have a gander at the groups in there. To see what groups you're added to already, type groups.

Last edited by xorl (2008-09-08 02:14:27)

Offline

#3 2008-09-08 01:44:30

kensai
Member
From: Puerto Rico
Registered: 2005-06-03
Posts: 2,484
Website

Re: [Solved]How to list groups available

edit "/etc/group", add your username in front of the group you want to be in.

Edit: Someone beat me to it. Hey mods, can anyone move the above post below mine, so I can be the winner?

Last edited by kensai (2008-09-08 01:45:35)


Follow me in: Identi.ca, Twitter, Google+

Offline

#4 2008-09-08 01:47:52

xorl
Member
From: San Diego
Registered: 2008-09-08
Posts: 3
Website

Re: [Solved]How to list groups available

Haha, tongue

Offline

#5 2008-09-08 01:53:53

jordanwb
Member
From: Ontario, Canada
Registered: 2008-07-01
Posts: 151

Re: [Solved]How to list groups available

xorl didn't win. It says /etc/groups doesn't exist, it's /etc/group. Welcome to the forum xorl.

Last edited by jordanwb (2008-09-08 02:01:04)

Offline

#6 2008-09-08 02:02:44

SiC
Member
From: Liverpool, England
Registered: 2008-01-10
Posts: 430

Re: [Solved]How to list groups available

To list the groups available type in
# cat /etc/group-

To add your user to the group type:

# usermod -Ga groupname username

Should be what you need.

Offline

#7 2008-09-08 02:09:15

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [Solved]How to list groups available

kensai wrote:

edit "/etc/group", add your username in front of the group you want to be in.

hehe
The 'Slackware Way'...

Offline

#8 2008-09-08 02:15:03

xorl
Member
From: San Diego
Registered: 2008-09-08
Posts: 3
Website

Re: [Solved]How to list groups available

jordanwb wrote:

xorl didn't win. It says /etc/groups doesn't exist, it's /etc/group. Welcome to the forum xorl.

Heh, i'm an oldie actually, oddly. c14n of arch64 smile worked with andyrtr.

Offline

#9 2008-09-08 02:17:14

kensai
Member
From: Puerto Rico
Registered: 2005-06-03
Posts: 2,484
Website

Re: [Solved]How to list groups available

Misfit138 wrote:
kensai wrote:

edit "/etc/group", add your username in front of the group you want to be in.

hehe
The 'Slackware Way'...

Old habits, hard to break. wink Let me install Slackware on Virtualbox, I miss it. smile

Last edited by kensai (2008-09-08 02:17:40)


Follow me in: Identi.ca, Twitter, Google+

Offline

Board footer

Powered by FluxBB