Unix Technical Forum

Password setting in KSH Script

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 ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-05-2008, 10:33 AM
Al E. Williams
 
Posts: n/a
Default Password setting in KSH Script


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/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-05-2008, 10:33 AM
Paul Pluzhnikov
 
Posts: n/a
Default Re: Password setting in KSH Script

"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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-05-2008, 10:33 AM
roderick tapang
 
Posts: n/a
Default Re: Password setting in KSH Script


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.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-05-2008, 10:33 AM
Ron Hosler
 
Posts: n/a
Default Re: Password setting in KSH Script

On AIX5.2 and above use chpass.

cat pwdfile
user1asswd1
user2asswd2
........
.......
user9asswd9

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/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:41 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com