LinuxQuestions.org
Register a domain and help support LQ
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, 10: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, 12:00 PM   #2
manu-tm
Member
 
Registered: May 2008
Location: France
Distribution: Ubuntu, Debian
Posts: 343

Rep: Reputation: 43
try adduser instead
 
Old 11-28-2009, 12:08 PM   #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, 12:12 PM   #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, 11: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, 11: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, 11: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:15 AM
Adding user creating command not found problem Geetha S R SUSE / openSUSE 3 01-17-2006 08:20 AM
Command to connect ssh form win to lin?? ALInux Programming 3 10-31-2005 09:38 AM
dos and lin command line rootyard General 4 08-01-2004 11:16 AM
adding a user in the command line Daredevil Linux - Newbie 5 02-27-2004 01:56 PM


All times are GMT -5. The time now is 09:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration