[HPADM] No SAM - Menu driven shell scripts on adding,deleting and modifying users

From: Balaji Nathan (balajinathan2003@yahoo.com)
Date: Tue Nov 04 2003 - 11:59:40 EST


Hi admins,
I am new to the shell scripts/HP-UX system administration. (HP-UX 11.00) Please help me with the following.
I would like to have a menu driven script;where I can choose options.
 
Option 1: to add a user
              get the user id, group id etc., and create a user account using useradd with password expiry option (18 weeks), force password
Option 2: to delete a user
              get the user id and delete the user account using userdel
option 3: modify a user
              In case I want to modify the password for the user; get the user id and change the password
 
I used to do this using SAM. My new manager (grrrrr....) wants me to come up with a script for doing this.
Please help me gurus.
Regards,
Balaji

 

---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:36 EDT