Operating System - HP-UX
1833464 Members
2488 Online
110052 Solutions
New Discussion

Scripting Password Changes

 
SOLVED
Go to solution
Jason Berendsen
Regular Advisor

Scripting Password Changes

We have a very small user community and want a way to have a user change his password easily on all boxes. Is there a way to script this or do I have to set up NIS or NIS+?

Thanks in advance.

Jason
3 REPLIES 3
Bill McNAMARA_1
Honored Contributor
Solution

Re: Scripting Password Changes

Chris Calabrese
Valued Contributor

Re: Scripting Password Changes

Why don't you want to use NIS or NIS+? I can't imagine anything you setup actually being easier to build/maintain when all is said and done. If security is the issue, NIS+ can be setup quite securely.
Brainbench MVP for Unix Administration and Internet Security, SANS Review Editor, and Center for Internet Security HP-UX Benchmark project leader
A. Clay Stephenson
Acclaimed Contributor

Re: Scripting Password Changes

Hi Jason,

If it were me, I would implement NIS+ in a heartbeat. It's really quite simple and it does much more than passwords. It unifies your group files, /etc/services, hostnames (if you like) and if you use the automounter it allows you to maintain the automount maps in one place.

I find this approach to be much more robust and safe than any rdist or remsh schemes. It is essential that you also have at least one slave NIS+ server.

In my environment, I created a replacement for the yppasswd command to allow extra arguments which enabled CGI code to manipulate the passwd maps. My users can now set their password using their browser. Life is simple.

My 3 cents worth, Clay

If it ain't broke, I can fix that.