useradd -c command
Hi to all,
Hope you all will be fine. I want to ask what's this command mean Quote:
Quote:
[root@localhost asterisk-1.6.2.4]# useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk Then what it means Thanks |
Look here (or do a "man useradd"):
http://linux.die.net/man/8/useradd "-c" is usually used to specify a user's full name (as in useradd -c "Kris Kringle" santaclause) The user created by this command is the final argument (here, user is "asterisk") 'Hope that helps .. PSM |
Hi,
Thanks for your quick reply:). Does it mean that add new user named "asterisk" in /var/lib/asterisk directory whose full name or login is "Asterisk PBX" Thanks |
Very close.
The login is the same as the username: "asterisk". The user is not "in /var/lib/asterisk", /var/lib/asterisk is the users home directory. The full name is just a description: it is not the login name. Cheers, Evo2. |
Hi,
Thanks:). But please can you tell me what is mean by /var/lib/asterisk is the users home directory. Do users create somewhere else also other than home directory? Thanks |
yes...by default users will be created in the /home directory. (If you didnt edit the file /etc/default/useradd and the uid and gid is set through /etc/login.defs file). But you can specify the path of the user's home directory while creating the user with the "d" option.
|
Quote:
Quote:
Evo2. |
Quote:
Evo2. |
sorry to say this, as other says, RTFM. use the man command or add --help after the command. it's explanatory.
|
Hi :),
Ok ok by providing -d /var/lib/asterisk we mean that this is user's home directory now. If we didn't use -d option then /home/user will be the home directory. Am i right? Thanks |
Quote:
Anyway as pointed out, all this information is in the man page. Cheers, Evo2. |
Hi:),
Thank you very much ;)from :newbie: |
All times are GMT -5. The time now is 07:41 AM. |