[olug] password change one liner shell script

Trent Melcher tmelcher at trilogytel.com
Mon Sep 8 13:46:30 UTC 2003


Use expect.   Works really well.

Trent

-----Original Message-----
From: olug-bounces at olug.org [mailto:olug-bounces at olug.org]On Behalf Of
Derek & Lisa
Sent: Friday, September 05, 2003 11:40 AM
To: olug at olug.org
Subject: [olug] password change one liner shell script


I want to set a user password all in one line, not by interactive prompt.
(bash shell script)

passwd username | sleep 1s && echo $passwordvariable |  echo
$passwordvariable

Something like that, but that actually works and enters the password twice.

any ideas?

ty
_______________________________________________
OLUG mailing list
OLUG at olug.org
http://lists.olug.org/mailman/listinfo/olug




More information about the OLUG mailing list