LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-12-2007, 09:15 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
Problem on running groupadd


Hi folks,


Ubuntu 7.04 server amd64


I need to create a new group, vmgroup, adding userA, userB as member to the gourp;


On running;

$ sudo groupadd -g 123 -x members=userA,userB vmgroup

I can't find the extended option -x


Please advise how to overcome this problem adding members to the new group. TIA


B.R.
satimis
 
Old 12-12-2007, 10:16 AM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
You can do the following
Code:
$sudo groupadd vmgroup
$sudo gpasswd -a userA,userB vmgroup
 
Old 12-14-2007, 08:37 AM   #3
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
Quote:
Originally Posted by reddazz View Post
You can do the following
Code:
$sudo groupadd vmgroup
$sudo gpasswd -a userA,userB vmgroup
Thanks for your advice.


# gpasswd -a userA,userB vmgroup
did not work.


Nor a space added between userA and userB (userA, userB) improved the situation.


I must run;
# gpasswd -A userA -M userB (etc.) vmgroup


satimis
 
  


Reply



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
segmentation fault with groupadd lionking_x Linux - Software 1 05-18-2006 11:09 AM
usermod and groupadd meDream Linux - Newbie 0 10-05-2005 05:01 AM
groupadd Pedroski Linux - General 3 11-08-2003 11:58 PM
Groupadd and useradd for RH 8.0 ??? edhan Linux - Newbie 12 10-07-2003 11:08 PM
case sensitive groupadd? sysmaster Linux - General 0 07-28-2003 04:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 03:18 AM.

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
Open Source Consulting | Domain Registration