LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 10: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, 11: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, 09: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


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

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

All times are GMT -5. The time now is 08:13 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
Open Source Consulting | Domain Registration