you can include that in you perl script as input parameters:

# pl  yourperlscript  oldpassword  newpassword

though the passwords are visible as you type them.



----- Original Message ----
From: mac borje <[EMAIL PROTECTED]>
To: ubuntu-ph <[EMAIL PROTECTED]>; plug <[email protected]>
Sent: Thursday, September 13, 2007 8:20:54 AM
Subject: [plug] passwd in single command line

hi everyone,

Iam try to automate changing password on a curtain user on a ubuntu box coz 
passwd is a interactive program that will ask a password then ask again to 
retype. it is very helpful if some will tell me how to issue a single command 
to change password that will replaces the entry on the /etc/shadow coz i have a 
program the will grep that and inject on pearl script to have a deployment 
program for new password on the offline box.


have a nice day
~mac







      
____________________________________________________________________________________
Tonight's top picks. What will you watch tonight? Preview the hottest shows on 
Yahoo! TV.
http://tv.yahoo.com/ 
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to