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

From: Balaji Nathan (balajinathan2003_at_yahoo.com)
Date: 11/04/03

  • Next message: Duncan, Jay: "[HPADM] Data Archiving"
    Date: Tue, 4 Nov 2003 08:59:40 -0800 (PST)
    To: hpux-admin@dutchworks.nl
    
    

    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)
    

  • Next message: Duncan, Jay: "[HPADM] Data Archiving"