Welcome, Guest. Please Login or Register
AIX User Group Forum
Sep 6th, 2010, 12:59am
News: Welcome to the AIX User Group forum.
Home Help Search Login Register


Pages: 1
Send Topic Print
Passwd reset automation (Read 45 times)
kans
Freshman
*


AIX User Group
Rocks!

Posts: 0
Passwd reset automation
Mar 31st, 2009, 3:38pm
 
I want to write a small shell script program to reset the password of the user's id without user's input.

If any of you have idea, pls. share it.

Thanks.
Back to top
 
 
  IP Logged
qsyunix
Freshman
*


AIX User Group
Rocks!

Posts: 1
Re: Passwd reset automation
Reply #1 - Jul 30th, 2010, 8:57am
 
Ok, have some questions, and some info..
1) try /usr/bin/chpasswd    very powerful tool for automation
via stdin  you give it userid:password (list of many if you want to change 50 id's at once (1 id per record)
-c flag  (removes admchg flag in /etc/security/passwd
-e flag says the password you're providing is already encrypted (good if you want to override pwd_alg in /etc/security/loign.cfg

QUesiton to you.. what do you mean "reset"??
as in set it "back" to seomthing? that implies you have a list of what that previous "something" was which can be a security risk in itself.
If you just want to reset failed login attemts.. .use chuser

guess I'm not clear on what you're trying to accomplish... can you give an example of how this would be used..
Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print