[fedora] Groups

Øyvind Lode o-lode at online.no
Wed Sep 15 22:05:45 UTC 2004



-----Original Message-----
From: Øyvind Lode [mailto:o-lode at online.no] 
Sent: 15. september 2004 23:46
To: 'fedora-list at redhat.com'
Subject: RE: [fedora] Groups


Message: 2
Date: Wed, 15 Sep 2004 12:01:20 -0400
From: Matthew Miller <mattdm at mattdm.org>
Subject: Re: [fedora] Groups
To: For users of Fedora Core releases <fedora-list at redhat.com>
Message-ID: <20040915160120.GB16738 at jadzia.bu.edu>
Content-Type: text/plain; charset=us-ascii

On Wed, Sep 15, 2004 at 11:16:45AM -0400, Clint Harshaw wrote:
> What about using your favorite text editor to edit /etc/group and add
> the user to the group there?

: That works, of course, but don't forget to also edit /etc/gshadow. (And
watch out for locking problems.) Generally, I :think using 'gpasswd' is
cleaner.

-- 
Matthew Miller           mattdm at mattdm.org        <http://www.mattdm.org/>
Boston University Linux      ------>                <http://linux.bu.edu/>

------------------------------

: Hi

: Hi again

: Using useradd -g users john seems the easiest way.
: But A huge stepback is that it removes other group membership of user
john. I wanted to add john to users...

: I got a reply telling me to read the man pages of div useful commands so
that will probably give me the anser how to add : john to groups without
removing him from existing groups.

: I suppose if I edit /etc/groups, /etc/gshadow, /etc/gpasswd etc I will
escape this problem because I then just add users : to john without removing
other groups...

: Using a graphical tool in GNOME or KDE is also a good idea but not for my
config since I don't run X :)

: Øyvind

----------------------

A quick look in man usermod told me:
# usermod -G users john

This command added john to users without replacing his existing group
membership (login group) which is john.

Please correct me if I'm way off...

Øyvind





More information about the users mailing list