LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] adding users to groups

[ILUG] adding users to groups

Lisa Muir 34.24.34 at gmail.com
Fri Feb 29 09:27:47 GMT 2008


On Fri, Feb 29, 2008 at 8:04 AM, Paul Mullen <mullen.paul at gmail.com> wrote:
> On Fri 29 Feb 2008, Brian Foster wrote:
> >   | Date: Fri, 29 Feb 2008 06:10:54 +0000
> >   | From: "Lisa Muir" <34.24.34 at gmail.com>
> >   |[ ... ]
> >   | I can hand edit /etc/group to add [a new user to an existing group].
> >   | but I'd like to do it through groupadd or useradd.  [ ... ]
> >
> >  `useradd -G ...'  or  groupmod(8) ?

Looked at both of these before posting, groupmod lets you change group
names and group id's and not add users to groups, and the useradd -G
would change apache from one group to another without leaving them in
the existing group unless all existing groups were specified... or
that could be just my bad interpretation of the man file.

> gpasswd -a <username> <group>
>
> gpasswd(1)

Perfect.... exactly what I was looking for, thanks Paul,

Lisa.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell