|
From: Jim Nathan on 20 Jun 2008 01:15 I would like to write a Korn shell script that reads from a list of servers and for each server, executes a remote shell command that resets a user's password. However, I want to know if there might be another way to do this instead of rsh because I think that for security reasons, all the Berkely commands have been disabled. Does anybody have any suggestions?
From: Mike Marshall on 20 Jun 2008 10:58 >And if >you're going to change passwords from a script, you'll have to install >expect. passwd is specifically written to accept input only from a >terminal running a shell. expect gets around that: >http://www.exect.nist.gov It's probably no big deal to install expect, but there's a lot of other ways to do it. A simple PAM app, pam_start, pam_chauthtok, pam_end and a conv function is a simple homegrown program that uses only published interfaces... -Mike
|
Pages: 1 Prev: Solaris 10/Powerpath and a CX700 Next: Insufficient disk space for SunStudio 12 |