LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2006, 12:27 AM   #1
shipon_97
Member
 
Registered: Oct 2005
Location: Bangladesh
Posts: 504

Rep: Reputation: 31
Lightbulb Cannot find user in home directory


Dear Friends ,

I am using Redhat Enterprise Linux 4 version . I have two partition into my Linux server , SWAP and rest of others ROOT (/) . Normally I know , when I add a user then it creates on tha "/home" directory by default . But In this moment when I add a user like : "useradd sql" , then "sql" user cannot found in the "/home" directory . But when I again run "useradd sql" then it shows "useradd: user sql exists"

In this moment , I don't understand what is the problem ? Can anybody help me according this regards .
 
Old 10-03-2006, 01:29 AM   #2
fatrandy13
Member
 
Registered: Jun 2004
Location: new jersey
Distribution: anything debian based, long live apt-get
Posts: 230

Rep: Reputation: 30
i'm not sure if useradd definitely creates a home directory by default, try using the -d option:

useradd sql -d /home/sql
 
Old 10-15-2006, 04:42 AM   #3
lido
Member
 
Registered: Jul 2003
Posts: 34

Rep: Reputation: 15
I have the same problem here with slackware. I installed slackware with a / and swap dir only, did not create a separate partition for /home. When i create user using useradd, it adds the user into the passwd file and does indicate the default dir of /home/user_name. However when i go to /home dir, the dir for this user is not auto created. Tried with -d option it doesn't create as well. "adduser" does create a home directly though. Is it suppose to be like that for slackware? I remember redhat does not work this way. It auto creates home directory with useradd. Is there anything I've missed out?
 
  


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
Getting the home directory of current user in c++ jimsproch Programming 2 04-10-2006 01:15 AM
jail user to /home/user directory confused_user Linux - Security 12 03-15-2006 09:56 AM
Cant find home directory? BajaNick Linux - Software 2 07-28-2003 09:04 PM
How is your /home/user directory organized cyris Linux - General 4 04-09-2002 05:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:58 AM.

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