Thanks to explain how to resolve this error:
useradd -d /export/home/kish -m -s /bin/ksh -c "kkalyan"
UX: useradd: ERROR: invalid syntax.
usage: useradd [-u uid [-o] | -g group | -G group[[,group]...] | -d dir |
-s shell | -c comment | -m [-k skel_dir] | -f inactive |
-e expire | -A authorization [, authorization ...] |
-P profile [, profile ...] | -R role [, role ...]]
-p project [, project ...] login
You need to specify the username to be created ..
$ useradd -d /export/home/kish -m -s /bin/ksh -c "kkalyan" username
thanks.after that i have give cmd 'passwd -f kkalyan'.
i loged out nd loged in again
i gave su kkalyan
it asked 4r password i gave kklayan it is showing error:(
how to create password
What is the error message you are getting ? Paste it here
passwd -f
only tells the system that the user must change the password on the next login; it does not set any default password.