This is a discussion on Password setting in KSH Script within the AIX Operating System forums, part of the Unix Operating Systems category; --> Good Day All: Using an input file, with 3 fields (login, passwd, uid), how do I pass $2 to ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Good Day All: Using an input file, with 3 fields (login, passwd, uid), how do I pass $2 to the passwd command in a ksh script, without being prompted. Give Thanks!! Using Opera's revolutionary e-mail client: http:\\www.opera.com/mail/ |
| |||
| "Al E. Williams" <bougdzac@viaccess.net> writes: > Using an input file, with 3 fields (login, passwd, uid), how do I pass > $2 to the passwd command in a ksh script, without being prompted. http://expect.nist.gov/ Cheers, -- In order to understand recursion you must first understand recursion. Remove /-nsp/ for email. |
| |||
| Al E. Williams wrote: > Good Day All: > > Using an input file, with 3 fields (login, passwd, uid), how do I pass $2 > to the passwd command in a ksh script, without being prompted. if you are using local authentication, you can directly modify /etc/security/passwd file and then run pwdadm -c <username> for each login. |
| ||||
| On AIX5.2 and above use chpass. cat pwdfile user1 user2 ........ ....... user9 chpasswd < pwdfile On Sat, 30 Sep 2006, Al E. Williams wrote: > > Good Day All: > > Using an input file, with 3 fields (login, passwd, uid), how do I pass $2 to > the passwd command in a ksh script, without being prompted. > > Give Thanks!! > > > Using Opera's revolutionary e-mail client: http:\\www.opera.com/mail/ |