random generator to change root password regularly - scripting help needed

From: Gold Sun (goldsun8_at_yahoo.com.sg)
Date: 05/31/05

  • Next message: PSI: "[SUMMARY] Can I install solaris 10 on a SPARCstation20 ?"
    Date: Tue, 31 May 2005 08:26:08 +0800 (CST)
    To: Sun Managers <sunmanagers@sunmanagers.org>
    
    

    Hi,
     
    We have hardened Solaris boxes where administrators do
    not need to know the root password (as we just do 'sudo -s').
     
    It's the policy here that all passwords including root's must
    expire every 3 months but this created a problem to an
    application that would fail if the root password expires.
     
    I have an idea/solution that the security person is agreeable :
    "set up a script in crontab which runs every 90 days to
    change the password to a randomly generated password"
     
    I've obtained a standalone tool from a TACACS application
    that would generate a different hashed password each time
    it's run even though the same fixed string(contained in the
    file input.txt) is input into it :
    ./generate_pass < input.txt
      Password to be encrypted: J58rSyCjtnUhQ
    ./generate_pass < input.txt
      Password to be encrypted: 2ZwWQZxHplNA.
     
    The problem I'm facing is how to feed the encrypted password
    into the "passwd root" command if someone could help me
    with some Shell scripting here :
    a)"passwd root" command will prompt for password twice
       - so how can we feed the encrypted string into
         "passwd root"
    b)note that we should not run generate_pass twice as it
       will create a different password - we need to enter the
       same password twice (2nd time is confirmation)
     
     
    Thanks for any help
    G Sun
     
     
     
     
     
     
     

     Yahoo! Mobile
    - Download the latest ringtones, games, and more!
    _______________________________________________
    sunmanagers mailing list
    sunmanagers@sunmanagers.org
    http://www.sunmanagers.org/mailman/listinfo/sunmanagers


  • Next message: PSI: "[SUMMARY] Can I install solaris 10 on a SPARCstation20 ?"

    Relevant Pages

    • Re: changing the login passwords requirement
      ... >> tring to use root password has to enter that password twice. ... > What do you expect this to gain you? ...
      (Fedora)
    • changing the login passwords requirement
      ... tring to use root password has to enter that password twice. ... Suppose there is user name john ...
      (Fedora)
    • Re: changing the login passwords requirement
      ... > tring to use root password has to enter that password twice. ... If you are worried about some unauthorized person gaining access to su then ... only allow the wheel group to use su? ...
      (Fedora)
    • Re: Any known reason why su would not work?
      ... If you're worried that someone has your root password now, ... and the command had no ... > hacker and called su, and that had just read my ... > I didn't find any obvious evidence of a hacker, ...
      (comp.os.linux.security)
    • Re: How To Move SuSE Install To A Larger Drive
      ... files from the command line. ... (will need to enter root password again when asked) ... and you should see the 'oldhomedir' file we created earlier. ... (I've added extra spaces to emphasize where the spaces should be!) ...
      (alt.os.linux.suse)