It is currently Sat, 05 Dec 2020 12:58:37 GMT

Author Message
 Change user password using shell script

How can i change user password on solaris os using shell script or any
other program.(Without using expect script)

 Tue, 30 Sep 2008 18:17:23 GMT   
 Change user password using shell script
This one-line perl script generates crypt(3C) strings...

#!/usr/bin/perl -w
# usage:    makepw password salt
#           "salt" is any two character string chosen from the set
# example:  makepw opENupwd a7
#           a7GGiQHDf8Auo
if ($#ARGV < 1) { print "usage: pwstring salt\n"; exit; }
printf("%s\n", crypt($ARGV[0], $ARGV[1]));

 Wed, 01 Oct 2008 05:57:17 GMT   
 Change user password using shell script
Gogdanivb schrieb:

openssl or apg can generate des and md5 hashes of passwords.
With a simple sed script you can insert a des or md5 hash in
/etc/shadow, but you must take care for an simultanous running passwd or
similar, solaris dont have a vipw, or has it somewhere? Does anybody
know how solaris take care for simultanous running passwd? Take a look
at the source browser at

 Thu, 16 Oct 2008 04:34:42 GMT   
   [ 3 post ] 

Similar Threads

1. Changing User Passwords in Shell Script

2. Help on Changing user and executing commands using shell script

3. Automated password change from within shell script.

4. changing password via shell script

5. Automated password change from within shell script.

6. Change User's password in shell

7. Looking for a cgi script so users can change their passwords through apache

8. Connecting telnet users from shell script without giving password

9. Running a script in csh that will change the password of 200 users without being interactive

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software