LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-27-2003, 11:50 AM   #1
Chilipepa
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, 12:06 PM   #2
Gates1026
Member
 
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, 12:08 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

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

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


Reply


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:40 PM.

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