Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-27-2003, 10:50 AM   #1
LQ Newbie
Registered: Sep 2003
Posts: 5

Rep: Reputation: 0
Cool adding user to a group

I created some users and later on I created a group where I'd like adding those users. In this Practical guide to linux I bought is not very clear how to do that. Is just a matter of changing the GID in the passwd file?
Please, help and patience is appreciated
Old 09-27-2003, 11:06 AM   #2
Registered: Sep 2003
Location: Iowa
Distribution: Slackware 9.1
Posts: 155

Rep: Reputation: 30
check out the man pages, but it looks to me like it is

useradd -G <group name> <username>
could be -g (not really clear, just play around with it)

in RedHat the group is stored in /etc/group
Old 09-27-2003, 11:08 AM   #3
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 67
Welcome to LQ.

That is only the users primary group. To add a user to a normal group do it in the group file:

To have joe and jack inthe juser group with gid 510:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
adding user to group ryancoolest Linux - Newbie 9 04-14-2008 12:50 PM
adding user to wheel group tied2 *BSD 10 09-28-2007 04:22 AM
Adding new group to existing user ALF Linux - Software 7 05-08-2006 09:35 PM
after adding user to group peter72 Linux - General 2 08-01-2005 10:17 AM
Adding user account to root group konabumm Linux - Newbie 1 07-31-2003 03:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:36 PM.

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