rubbersoul
IS-IT--Management
I want to write a script that will change the password to a users login name and also reset his/her login count.
I know the two lines I need but don't know if it's possible to just run the dcript and be promptd for the user name....here's what I have so far...
passwd $username
chsec -f /etc/security/lastlog -a 'unsuccessful_login_count = 0' -s $username
can this be done? It's just that I have to do these all the time and don't want to have to go into smit everytime!
I know the two lines I need but don't know if it's possible to just run the dcript and be promptd for the user name....here's what I have so far...
passwd $username
chsec -f /etc/security/lastlog -a 'unsuccessful_login_count = 0' -s $username
can this be done? It's just that I have to do these all the time and don't want to have to go into smit everytime!