A
AJAY SHARMA
Guest
In shell script i want set the password for user itk .. Below is the scenario.
The script has to wait for New UNIX password: and then enter new password and then again wait for
Retype new UNIX password: and then enter the same password again and then wait for successfully message and then move ahead with other commands in the script.
root@ESELIVEDOSDP013 /var/opt # passwd itk
Changing password for user itk.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
The script has to wait for New UNIX password: and then enter new password and then again wait for
Retype new UNIX password: and then enter the same password again and then wait for successfully message and then move ahead with other commands in the script.
root@ESELIVEDOSDP013 /var/opt # passwd itk
Changing password for user itk.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.