The others commands are AIX commands (supper in SP2 environments) and a GNU tool, both for distribute files.
Whith rdist, you can distribute the following files:
/etc/passwd
/etc/groups
/etc/shadow
and if you use solaris 8
/etc/user_attr.
---------------------------------------
If only want to change one password, use "expect"
http://www.sunfreeware.com
ask the administrator to install expect and tcl.
(and give you acces to expect /usr/local/bin )
tcl
and
expect
(tcl is a pre-requisite of expect pakage).
Note: You need to create a expect file and call expect -f my_expect1
Example of my_expect1
spawn telnet [lindex $argv 0]
expect "login: "
send "[lindex $argv 1]\r"
expect "Password: "
send "[lindex $argv 2]\r"
expect "Sun Microsystems Inc. SunOS 5.8 Generic February 2000"
send "passwd\r"
expect "Enter login password: "
send "[lindex $argv 2]\r"
expect "New password: "
send "[lindex $argv 3]\r"
expect "e-enter new password: "
send "[lindex $argv 3]\r"
expect eof
Note: To call
expect -f my_expect1 <server> <user_name> <old_passwd> <new_passwd>
also you need to make a script to cal the previous line giving the apropiate parameters.
IMPORTANT: Is convenient that anybody was login into the server,
because with a ps he can view your passwd.
Regards. Hugo.