On 11/28/2006 9:24 AM, d.qureshi mdx.ac.uk wrote:
> > I have added a userid called fred1 to a group
called wheel using the following command on my Linux
server:-
> >
> > # usermod -G wheel fred1
> >
> > The above userid now appears in the /etc/group
file as
> >
> > wheel :10:r
oot,fred1
> >
> > How do I remove the userid fred1 from the group
called wheel?
>
I can't believe that 3 people all gave you a hard answer
today
# man gpasswd
.../Ed
-- Ed Wilts, Mounds View, MN, USA mailto:ewilts ewilts.org
___________________________________________________________
Could just run
usermod -G "" fred1
USERMOD(8)
-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. This
behaviour
can be changed via -a option, which appends
user to the
current supplementary group list.
--
Thanks,
Jonathan
System Administrator NOAA PMEL OERD
Newport, OR <+>
--
nahant-list mailing list
nahant-list redhat.com
h
ttps://www.redhat.com/mailman/listinfo/nahant-list
|