Originally posted by zameer_india
useradd -d /home/zameer99 -g zameer99 -s /bin/bash zameer99
after bash u used zameer99............... why?
The documentation for the useradd program gives this as its usage:
useradd [-c comment] [-d home_dir]
[-e expire_date] [-f inactive_time]
[-g initial_group] [-G group[,...]]
[[-M] -m [-k skeleton_dir]] [-o] [-p passwd]
[-s shell] [-u uid] login
The thing to note is the "login" argument. Everything you see in brackets ( [ ] ) is optional. However, if you use any optional arguments, they must come before "login". You cannot swap them around. You replace login with the user name of the account you're trying to create. Since it doesn't have brackets, you have
to give a value for it. You can read the documentation for yourself with: man useradd
I chose zameer99 because your previous posts were adding a number to the end of zameer, and I wanted to use one that you had not tried yet.