Hi Thomas
you can use : chpasswd (pkg. shadow-utils)
#!/bin/bash
#i.e in this way it uses std input ( echo pippo:aaaa | chpasswd )
uid='pippo' # userid
psw='aaaa' # get psw
cmd_x="echo $uid:$psw|$chg_psw" # set cmd to chg psw
$cmd_x
......
in other way you can use an input file. .... se chpasswd man page.
Cordiali saluti / Best regards
Marco
Thomas Broman
<[EMAIL PROTECTED]
lsen.se> To
Sent by: Linux on [email protected]
390 Port cc
<[EMAIL PROTECTED]
IST.EDU> Subject
PASSWD in Linux
09-01-06 14.02
Please respond to
Linux on 390 Port
Hi
Does anyone know if there is a way to change someones password in Linux
from a script.
Pls teach me.
TIA
Thomas Broman
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390