LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   adding user via the command lin (https://www.linuxquestions.org/questions/linux-newbie-8/adding-user-via-the-command-lin-772113/)

AviPesach 11-28-2009 09:17 AM

adding user via the command lin
 
Hi,
I just added a user in ubentu using the following command:
sudo useradd lmorgan
I set the user's password but when trying to login as the user I got few errors on tools that can;t be created or the users.
Any idea why?


Thank you for your feedback.

Avi

manu-tm 11-28-2009 11:00 AM

try adduser instead

pingu 11-28-2009 11:08 AM

With "useradd" you have to create home disrectory manually, or specify it with -m

explodingzebras 11-28-2009 11:12 AM

I presume you're using ubuntu in commandline only such as in ubuntu server, if not then the User and Groups menu in Gnome would surely be the better option?

AviPesach 11-29-2009 10:29 AM

Thank you
 
Quote:

Originally Posted by explodingzebras (Post 3772525)
I presume you're using ubuntu in commandline only such as in ubuntu server, if not then the User and Groups menu in Gnome would surely be the better option?


Thank you for your feedback, using the GUI is the best way but I want to learn, that is why I am using the command.

Thanks

Avi

dxqcanada 11-29-2009 10:53 AM

Did you use the useradd command with the parameter to create the user's home directory (-m)?
Look over the options:
Code:

$ man useradd

manu-tm 11-29-2009 10:57 AM

from man useradd:
"useradd is lowlevel so, on debian, admin should use adduser instead" or sth like that...
ubuntu is based on debian


All times are GMT -5. The time now is 12:30 AM.