questions from the edge....

questions from the edge....

Post by Mike P » Thu, 27 Nov 1997 04:00:00



to who ever,
        I am trying to add a secondary group to some users on an HP9000 10.01.
Would anyone know the command to do this -- outside of SAM.  

thanx in advance,
Mike P.

 
 
 

questions from the edge....

Post by Christian Smyt » Thu, 27 Nov 1997 04:00:00


Mike:

Uhhh, I think you just want to edit /etc/group, and add the users to the group
that way (you just tack a comma-separated list of users onto the end of the line
that contains whatever group you're trying to add them to).  It's pretty simple,
and I think it beats the *out of sam, but I'm prejudiced against anything that
trys to wrap a simple task like EDITING ONE FILE or ISSUING A SHORT COMMAND-LINE
COMMAND in some overblown, screen-oriented sysadmin interface.

--christian smyth


> to who ever,
>         I am trying to add a secondary group to some users on an HP9000 10.01.
> Would anyone know the command to do this -- outside of SAM.

> thanx in advance,
> Mike P.



 
 
 

questions from the edge....

Post by Chris J ( » Thu, 27 Nov 1997 04:00:00


Use vi? That's the way I change the groups -- edit /etc/group manaully. I
don't know of any tool that is designed to do this.

Chris...



>to who ever,
>    I am trying to add a secondary group to some users on an HP9000 10.01.
>Would anyone know the command to do this -- outside of SAM.  

>thanx in advance,
>Mike P.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Chris Johnson, BEng ESIE IV          | "Let us try to live our lost illusions

http://homepages.shu.ac.uk/~cjohnso0 | we'll never taste the spice of life"
 
 
 

questions from the edge....

Post by Jeff Fish » Thu, 27 Nov 1997 04:00:00


On 26 Nov 1997 19:49:21 -0000, Chris J (#6)



> >to who ever,
> >       I am trying to add a secondary group to some users on an HP9000 10.01.
> >Would anyone know the command to do this -- outside of SAM.  

> >thanx in advance,
> >Mike P.


Try usermod -G secondgroup username

Make sure to do this:
# cd /etc
# ln -s group logingroup

so that the users will not have to newgrp to get into their new groups.

--
Jeff Fisher                       | Nobody expects the Spanish
UNIX Sys Admin - IES Industries   | Inquisition.
http://opus.ies-energy.com/jeff/  |        - Cardinal Ximinez