Operating System - HP-UX
1825810 Members
2463 Online
109688 Solutions
New Discussion

script for changing user passwords;

 
Tony Peguinho
Occasional Contributor

script for changing user passwords;

Dear all,

I have been asked to write a script that non-root users (helpdesk users) can launch which will enable them to change user passwords.

Is there a way of allowing a user to log on and change any other users password without logging on as root or knowing the users original password.

Thanks

Tony
knowledge is power
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: script for changing user passwords;

Tony:

You might consider "restricted SAM" access for providing the function you seek.

...JRF...
Dan Hetzel
Honored Contributor

Re: script for changing user passwords;

Hi Tony,

'sudo' could help you as well.
It's available at the HP archive and Porting Center or on Courtesan web site.

http://hpux.cs.utah.edu/
http://www.courtesan.com/sudo/sudo.html

Regards,

Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Rich Kloempken
Contributor

Re: script for changing user passwords;

We have implemented the ability to reset passwords via the restricted SAm facility. SAM also allows you to create a custom menu, which is what we had to do, since we run in a trusted mode. The menu calls a ksh script which allows the account to be reactivated or to reset the password, etc.
Fixing bugs only reveals larger bugs that were hidden by the current bug
Philip Chan_1
Respected Contributor

Re: script for changing user passwords;

Run "sam -r" to invoke restricted sam. First you select the user then configure the sam menu for that user.