allywilson
Technical User
Hi all,
I'm making a script so that a helpdesk can login to a solaris 9 box, be presented with a prompt to enter someones username and it then runs "passwd -d -f $username" so that it essentially resets the password to nothing and requires the user to change at next logon.
I can do the above no problem. But I don't want them to login as the root user - is there a way I can give permissions to another user account so that it can reset the password of other users?
Also, at the end of the script I want it to log the user out, but I don't have the logout command available.
Any ideas?
Thanks,
Ally
I'm making a script so that a helpdesk can login to a solaris 9 box, be presented with a prompt to enter someones username and it then runs "passwd -d -f $username" so that it essentially resets the password to nothing and requires the user to change at next logon.
I can do the above no problem. But I don't want them to login as the root user - is there a way I can give permissions to another user account so that it can reset the password of other users?
Also, at the end of the script I want it to log the user out, but I don't have the logout command available.
Any ideas?
Thanks,
Ally