LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to add user information (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-user-information-571540/)

jrkraj 07-23-2007 03:49 AM

how to add user information
 
i am the student of linux. i want to know what is command to add user info. like fullname,phone,email etc. in terminal window.

thanks

puntjuh 07-23-2007 04:13 AM

You can use useradd to make a new user. But this won't ask for full names and such.

Code:

adduser
This command will give you a step-by-step question form too make a user, which WILL ask for full name and such.

jrkraj 07-23-2007 04:40 AM

i know about this command but i want to add users information.

b0uncer 07-23-2007 04:43 AM

If I'm right, you can just run 'adduser' for an existing user to update the information about that user (the username/id must match). Note that any information that exists that you don't specify (again) is probably lost. For example if the user belonged to groups Group1 and Group2, and you re-ran adduser and told the user's groups were Group2 and Group3, the user might not belong to Group1 anymore. (note: it's been a long time since I last ran this command, and that group-"example" is just off the top of my head..)

jrkraj 07-24-2007 01:23 AM

thank you very much for the information. i got the command which i looking for the command is
Code:

chfn =change full name

reddazz 07-24-2007 02:45 AM

You could also have used "usermod -c" for an existing user.


All times are GMT -5. The time now is 09:18 AM.