LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 04-27-2008, 02:02 PM   #1
samuslove
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Rep: Reputation: 0
adding users


Hello everyone, I am new to linux and was going through some tutorials.

When I created my first user, his dir shows up in /home, but when I created my 2nd and 3rd user, their directories dont show up in /home.

Why is this? When I log in with the 2nd and 3rd user and it logs in and is functional but there is a message saying "No directory, logging in with HOME=/"

Thanks in advance for the help.

EDIT: Sorry this belongs in the Newbie section.

EDIT2:By the way, I'm using VMware Server for a virtual desktop.

Last edited by samuslove; 04-27-2008 at 03:17 PM.
 
Old 04-27-2008, 02:57 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
What command did you use to add new user 2 and 3?
 
Old 04-27-2008, 03:10 PM   #3
samuslove
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for the response Bigrigdiver.

I used the same one as for the first user.
Code:
useradd user
passwd user
 
Old 04-27-2008, 03:11 PM   #4
Smedley
Registered User
 
Registered: Apr 2008
Distribution: Slackware
Posts: 74

Rep: Reputation: 15
Disregard........re-read your post.
 
Old 04-27-2008, 03:29 PM   #5
marquardl
Member
 
Registered: Apr 2008
Posts: 100

Rep: Reputation: 15
remove and add again

Adding a new user without any other option than the username will create a home directory in /home.

Did you try out some settings or maybe even added a path where to create the new home directory?

Usually you must be root to add new users - did you alter anything that could have changed the default settings

Did you use some GUI tool to add the users or did you do it on the command-line?

I don't think that the VMware environment has any influence on this.

To correct the current situation remove those users and create them again properly. Have a look at the man pages for guidance.

Bye,
M

EDIT: You already answered some of the questions in interim posts. Also have a look at /etc/passwd to see the core user setting.

Linux

Last edited by marquardl; 05-01-2008 at 04:22 AM.
 
Old 04-27-2008, 06:52 PM   #6
samuslove
LQ Newbie
 
Registered: Apr 2008
Posts: 3

Original Poster
Rep: Reputation: 0
figured it out

Ok problem solved. Thanks alot eveyrone for your help.

I have to input in the command line:
Code:
useradd -d user
It only works with the option -d or else the user will be created without the home directory. This is Debian netinst I am running I believe.

Thanks again.
 
Old 04-28-2008, 01:10 AM   #7
Zmyrgel
Senior Member
 
Registered: Dec 2005
Location: Finland
Distribution: Slackware, CentOS, RHEL, OpenBSD
Posts: 1,006

Rep: Reputation: 37
Most distros have adduser script that prompts for user details. You could try that too.
 
Old 04-28-2008, 02:01 AM   #8
kessler961
LQ Newbie
 
Registered: Apr 2008
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by marquardl View Post
Adding a new user without any other option than the username will create a home directory in /home.

Did you try out some settings or maybe even added a path where to create the new home directory?

Usually you must be root to add new users - did you alter anything that could have changed the default settings

Did you use some GUI tool to add the users or did you do it on the command-line?

I don't think that the VMware environment has any influence on this.

To correct the current situation remove those users and create them again properly. Have a look at the man pages for guidance.

Bye,
M

EDIT: You already answered some of the questions in interim posts. Also have a look at /etc/passwd to see the core user settings.
I read this post and thought of microsoft lol

I use 'useradd -m username'.
 
  


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 users rharris72 Programming 5 12-02-2005 05:51 PM
Adding users muppski Programming 5 04-08-2005 02:41 AM
adding users... Digital_Err0r Linux - General 1 03-31-2004 03:08 PM
Adding New Users guygriffiths Linux - General 4 10-13-2003 10:11 AM
adding users jmarsh Linux - Networking 25 10-08-2003 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:41 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