Assign default password to new users in Solaris

view full story

http://www.unix.com – Hi All, I am working on a Solaris 10 machine and now working with a user creation script. I want to create users using the script and assign a default password. I found the use of 'expect' in one post, but 'expect' is not available in our server. Also, the below code is not working for me. Code: # useradd -m -d /home/foo foo # echo "foo" | passwd --stdin foo Changing password for user foo. passwd: all authentication tokens updated successfully. Now I am thinking of editing the /etc/shadow file with the password string of other user. But I am really afraid to try this way (HowTos)