Create user and set passwd in AIX
Hi Guys,
Is there any way I can create user and set its passwd in a single line in AIX. I'm able to do this in Linux(RHEL) but want to replicate the same in AIX. $useradd -c 'firstnam lastname' -g group1 -n -s /bin/ksh id1234; echo id1234password | passwd id1234 --stdin I have tried the following but doesn't seem to work: $mkuser pgrp='group1' gecos='firstname lastname' id1234 ; echo idpassword |passwd id1234 --stdin Any help is much appreciated. |
Quote:
Code:
echo "id1234:id1234password" | /bin/chpasswd -c |
Hey TB0ne thank you for the reply. I will post in respective forum this was the reason why I was not getting any answers.
Thank you again for the solution provided it helped me. Appreciate It! |
All times are GMT -5. The time now is 10:31 PM. |