Thus spake Andy Brown ([EMAIL PROTECTED]):
> I've been working on some Linux/Sendmail scripts to manipulate accounts
> from a Windows NT RSH session, and have a few questions for anyone
> willing to help.
>
> 1. We're shadowing passwords (of course), which forces us to go through
> the passwd utility to setup and/or change the password on an account.
> Is there a way to use the passwd utility from within a script? Or is
> there an alternative, non-interactive, PAM compliant, way to setup/alter
> passwords, via bash (or perl) scripting, that might be a better
> solution? If I can't find another way I'm leaning towards unencrypted
> passwords in the passwd file. Then it would be stupid simple to use
> sed, but I'm very uncomfortable with the idea.
Try the chpasswd command, it takes a file of user names and new
passwords. These can be either encrypted or plaintext.
--
|Deryk Barker, Computer Science Dept. | Music does not have to be understood|
|Camosun College, Victoria, BC, Canada| It has to be listened to. |
|email: [EMAIL PROTECTED] | |
|phone: +1 250 370 4452 | Hermann Scherchen. |
--
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.