En Mon, Dec 03, 2001 at 10:09:15PM +0800, Ian C. Sison escribio:

#_ > > Ok, anyone know the command to add a Linux user into a
#_ > > pre-existing group? (all the group[add|del|mod] programs seem to
#_ > > do something else)
#_ > >
#_ >
#_ > usermod -G group existingLinuxUser  or
#_ > usermod -G group,anothergroup existingLinuxUser
#_ >
#_ 
#_ Bakit kaya kanina ito yung ginagawa ko ayaw gumana? Naduduling na
#_ yata ako. *groan*

<snip>

-G group,[...]
              A  list  of  supplementary groups which the user is
              also a member of.  Each group is separated from the
              next  by  a  comma, with no intervening whitespace.
              The groups are subject to the same restrictions  as
              the group given with the -g option.  If the user is
              currently a member of a group which is not  listed,
              the user will be removed from the group.

Be careful using this, look at the last sentence above;
from man usermod.

-- 
Juan Miguel Cacho               [EMAIL PROTECTED]
Para�aque City, Philippines
GnuPG Public Key                Key ID 7B071F7F
http://www.philonline.com/~chocovim/pancitmolo.pgp
  Drive safely. 90% of people are caused by accidents.
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]

To subscribe to the Linux Newbies' List: send "subscribe" in the body to 
[EMAIL PROTECTED]

Reply via email to