AIX mkuser with password


 
Thread Tools Search this Thread
Operating Systems AIX AIX mkuser with password
# 1  
Old 12-18-2008
AIX mkuser with password

Hi

I want to create a user on AIX box. The only problem I have is I want to set it a password and the user doesn't have to change the password at his initial login. Is there any flag to do that. Any help would be appreciated.
# 2  
Old 12-18-2008
Check out pwdadm . I believe this will work "pwdadm -c user_id". You will of course have to use this after you issue mkuser to create the user and passwd to set the password.
# 3  
Old 12-18-2008
Thank you
That worked

How can I set the password using a script.
I tried
cat test11.txt | passwd test1
The file test11.txt contains the following two lines
test22pw
test22pw

But it is waiting on me for the input
If I just hit enter, it's reading the values from the file but I want to avoid hitting carriage returns.
# 4  
Old 12-18-2008
They are commands that require manual input. I have heard of people using the scripting language expect for such things. I have used it to script an ftp script. Do a search in these forums on expect and see what you find. Good Luck.
# 5  
Old 12-18-2008
check out the chpasswd command
# 6  
Old 12-19-2008
Hi Frank,
What version of AIX is that used in? I have 5.2 and do not find it. Thank you.
# 7  
Old 12-19-2008
I have 5.3 AIX and chpasswd is working
Thank you very much
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Passing variables to mkuser

In a ksh, I'm attempting to pass my string of arguments to the mkuser command in a variable as follows... cmd="pgrp=ACRGENU groups=ACRGENU home=/home/${USERID} shell=/usr/bin/ksh" cmd=$cmd" gecos='${USERNAME}' login=true su=false rlogin=true daemon=true" cmd=$cmd" admin=false... (4 Replies)
Discussion started by: bubbawuzhere
4 Replies

2. AIX

Help with AIX password

Hi guys.... I found in basement one functional ThinkPad Power Series 850 from my father, unfortunately he is forgotten username and password for operating system (AIX 4.14) :wall:. if anyone has any idea how to get in? (2 Replies)
Discussion started by: Alfons_x
2 Replies

3. AIX

AIX password issue

Hi, My server is an AIX server. Whenever a new user is created through smitty, the first time he logs in, he has to change his password. But i want to disable it and to enable the password expiry to a month. (i.e) after every month, he has to change his password. Any help in this matter... (1 Reply)
Discussion started by: mac4rfree
1 Replies

4. AIX

AIX 5.3 userid password length to 6

Hi All, How can I make the password of only two userid with 6 length while others are using regular policy of 8 or more length. Please help. Thanks. (2 Replies)
Discussion started by: itik
2 Replies

5. AIX

mkuser

Can we create new user with same UID?? why do we need that and what is the purpose to create like that (3 Replies)
Discussion started by: senmak
3 Replies

6. AIX

How to check password expiry in AIX?

Hi All, Could anyone please help me with the command or script for checking the password expiry for a particular userid on AIX. Regards, Sanjay...:) (5 Replies)
Discussion started by: SanjayPasum
5 Replies

7. UNIX for Advanced & Expert Users

mkuser - how to initialize a password using this command

I need to give an initial password when creating a user via mkuser command. I'm using it in a script so that I don't have to login to each server and type in a passwd or pwdadm command. Thanks in advance. AIX environment. (0 Replies)
Discussion started by: pdtak
0 Replies

8. AIX

AIX Non Expired Password

Hi, I am into production support and handling some of the AIX servers. We are planning to have a user id on a AIX system with non-expired password. Now the question is that if I have a non expired password then I cannot do a interactive login to AIX machine ( i:e cannot do Telnet ,SSH etc)... (0 Replies)
Discussion started by: siddhhuu
0 Replies

9. UNIX for Advanced & Expert Users

AIX - Core dump when using mkuser

Hi all, I've got a strange problem here that is not documented in AIX FAQs and tech docs, and I was wondering if somebody out there encountered the same issue or had an idea to help me out. I'm using a script to create users with the "mkuser" command. I can set up any options I want (like... (1 Reply)
Discussion started by: dfrangidis
1 Replies

10. UNIX for Dummies Questions & Answers

Password (AIX UNIX)

Need Help, I am new in unix. (AIX UNIX - RS 6000). I need a unix script to be able to change a unix password by just passing the user id and the new password. I need this script for the reason that my unix password should be the same on my applicatiion... (2 Replies)
Discussion started by: randyth
2 Replies
Login or Register to Ask a Question