changing password non-interactively.

2007-12-24 19:35:00

Hi,

On my SUN Enterprise 450 running solaris 2.6, I want to change the password of
a user non-interactively. Rather than issuing the following normal procedure
of changing password.

#passwd 'login'
Enter new passwd <enter>
Re-enter new passwd <enter>
Passwd Changed successfully for user 'login'

I want to change it from within a shell program like this:

#!/bin/sh
passwd login newpasswd newpasswd

Can any one guide me on how to do this in solaris. Furthermore, there are
many other similar questions that I want to ask, but those are not suitable
for this list. I will be obliged if some one tells me about some other list
regarding ANSI C programming on solaris.

I will summarize

John Black

____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1

Comments

Got something to say?

You must be logged in to post a comment.