Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
what is "Asterisk PBX represent and what is last asterisk represent. If i interpret it i think it means
Quote:
add user then what is -c option and Asterisk PBX? i don't know. -d represent directory /var/lib/asterisk but then what this last asterisk represent(i.e., after space)
And also please tell me what it's impact in the current directory.Means if i am executing it in the directory say
[root@localhost asterisk-1.6.2.4]# useradd -c "Asterisk PBX" -d /var/lib/asterisk asterisk
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"
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?
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.
But please can you tell me what is mean by /var/lib/asterisk is the users home directory.
The home directory for a normal user is typically /home/username. This is the location where by default they store their files and is the location they will be placed in when starting a login shell.
Quote:
Do users create somewhere else also other than home directory?
I don't understand this sentence. Do users create what? The user doesn't create their home directory: the admin or useradd (or similar) program should do that when the user account is created.
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?
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?
Yes, unless some location (other than /home) is specified in /etc/default/useradd or is specified with the -b flag.
Anyway as pointed out, all this information is in the man page.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.