Changing Password for Newly Created User
Posted on 2008-11-19
We've recently inherited a Sparc SOlaris 8 system and we need to create new users on the system. We have root access and we've tried to create the user using the following syntax:-
useradd -d /export/home/testuser -c "TestUser" testme
The User appears to have been created without any issues but then (as the root user) I try to change the password by using:-
but then instead of the expected "New Password:" prompt, I get the "Password:" prompt which suggests that either the user hasn't been created properly or I can't for some reason change the password for the user.
I tried to login as root and then "su - testme" and this is ok but when I try to do passwd inclar again, it's still the same issue.
Anyone have any ideas on what I can check or do to create a user in this case - I tried to use the -p option in useradd but this causes a problem in creating the user. Alternativly, Is there a default password that's assigned when useradd creates the user?