Link to home
Start Free TrialLog in
Avatar of swillman
swillman

asked on

Modifying adduser script question. Please Help!

I am a Jr. UNIX admin. and I have been given the task of stream lining the process of adding users.  I need to modify our adduser scripts to:

a.     Add a user to multiple groups in one process.
b.     In a separate script, I need to add users to a group without a home dir. and add the same user to a separate group with a home dir.

The OS that I am currently running is HP-UX 11.00.  Any suggestions, tips, or resources would be much appreciated.

Thanks

swillman
ASKER CERTIFIED SOLUTION
Avatar of ellesd
ellesd

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuzh
yuzh

You can just simply use "/usr/sbin/useradd" (HP-UX) to to the job. (You don't need to write a script!)

It does support multiple group. do a :
man useradd

to learn more details