When creating a user, you can specify the user's new password with the -p option or using stdin and the -S option.
The -S option allows you to read a password for the new user more securely from stdin. If you use this option, the password will not be displayed on the console by vastool create user as it usually is upon successful completion.
The newly created user will also be forced to change their password during their first login, unless the -x option is also specified.
Example 01:
# This will use -S which expects password from STDIN
#
# echo Testb123 > /tmp/tmppwd
# cat /tmp/tmppwd | /opt/quest/bin/vastool -u admin create -I "newuser:x:uid:gid:Newuser Newuserlastname:/home/newuser:/bin/csh" -S -c "OU=Users,OU=ContainerName,DC=example,DC=domin,DC=com" user newuser
Example 02:
Another example is the use of the unix command stty.
Stty will turn on/off the output to the screen.
# stty -echo turns output off
# stty echo (wihtout the minus) turns back echo on.
# stty -echo ;/opt/quest/bin/vastool -u sysadm create -i "linuxtest9:x:1782489738:1000:Linuxtest9 Linuxtest9:/home/linuxtest9:/bin/bash" -S -c "CN=Users,DC=lab,DC=company,DC=com" user linuxtest9; stty echo