LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 11-28-2009, 09:17 AM   #1
AviPesach
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Smile 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
 
Old 11-28-2009, 11:00 AM   #2
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
try adduser instead
 
Old 11-28-2009, 11:08 AM   #3
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
With "useradd" you have to create home disrectory manually, or specify it with -m
 
Old 11-28-2009, 11:12 AM   #4
explodingzebras
Member
 
Registered: Oct 2007
Location: UK
Distribution: Ubuntu
Posts: 63

Rep: Reputation: 18
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?
 
Old 11-29-2009, 10:29 AM   #5
AviPesach
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you

Quote:
Originally Posted by explodingzebras View Post
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
 
Old 11-29-2009, 10:53 AM   #6
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Did you use the useradd command with the parameter to create the user's home directory (-m)?
Look over the options:
Code:
$ man useradd
 
Old 11-29-2009, 10:57 AM   #7
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding command to normal user tuesday Linux - General 19 04-21-2008 12:15 AM
Adding user creating command not found problem Geetha S R SUSE / openSUSE 3 01-17-2006 07:20 AM
Command to connect ssh form win to lin?? ALInux Programming 3 10-31-2005 08:38 AM
dos and lin command line rootyard General 4 08-01-2004 10:16 AM
adding a user in the command line Daredevil Linux - Newbie 5 02-27-2004 12:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration