Hi,
I am writing shell script for creating AIX users. The script takes 'number of users to be added' as the argument and generates the users using 'mkuser' command. But the users are disabled till their password is not set using 'pwdadm' command. The 'pwdadm' command prompts for new password for each user. I want to suppress the prompt and make it take input from another file (or variable) in the shell script. I tried using redirect, but its not working. Please help.
Thanks in advance,
Smita.
I am writing shell script for creating AIX users. The script takes 'number of users to be added' as the argument and generates the users using 'mkuser' command. But the users are disabled till their password is not set using 'pwdadm' command. The 'pwdadm' command prompts for new password for each user. I want to suppress the prompt and make it take input from another file (or variable) in the shell script. I tried using redirect, but its not working. Please help.
Thanks in advance,
Smita.