Is there a way to make the user to choose the passwd. After adding the users using useradd command. This is possible if i add a new user thru admintool (cleared until first login option)but not thru useradd command.
Sorry, I don't know. However, if you set a password and then use the passwd -f <user>, the user will be prompted to change the password on first logging in. Cheers.
In the admintool, u can choose an option "cleared untill first login" for the password option.. THis will make the user to set his passwd from "clear passwd" to "some passwd" when he logs in for the first time..
Regds,
- Hemant
Networking and Systems Integration Group
Satyam Computer Services Ltd
you can freely download a "C" program for solaris called setpass which allows root to set a default password or set a password of root's choosing.
There are number of other options to setpass. One of them might help you.
after doing useradd. This will expire and delete the user's current password (even if there is none) and force him to enter a new password the next time he logs in. Note that
Code:
-d
only works for file repositories; e.g. /etc/passwd. HTH.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.