Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can you use usermod to chang passwords 1

Status
Not open for further replies.

fousait

MIS
Sep 1, 2004
50
US
i know in linux you can use usermod -p xxxx username
to change password does not seem to work on my 5.2
 
No it doesn't
The AIX equivalent of usermod is chuser but to change password you need to use passwd <username>

If you need to change passwords in batch mode there's an FAQ about it.

Columb Healy
 
Sorry - the FAQ is faq52-5866 which is about bulk user generation but it includes bits about changing passwords from batch files.

Columb Healy
 
when we use passwd username
to change passwords to the users
on the next login
it tells them
"3004-610 You are required to change your password.
Please choose a new one."
is this a setup problem
then you have to re enter the password 2 more times
 
on AIX 5.3 the is a command "chpasswd" which allows you change password using a list file, or just like that:


echo user:password|chpasswd -c
 
No, fousait, that is because when root sets a user's password, it is flagged as 'ADMCHG' - changed by administrator - in /etc/security/passwd. So on next login that user has to choose his own password, because the system knows the password was not chosen by the user his/herself...

Look at the FAQ by Columb, there is a c-program in there (based on a program of mine) which you can copy/paste to a program source file on your AIX box and compile it. With that program you'll be able to set a user's password which is valid also on first login.


HTH,

p5wizard
 
isn't it just with pwdadm -c <username> you set the password flag to no change at first login?

rgds,

R.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top