LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Cannot find user in home directory (https://www.linuxquestions.org/questions/linux-networking-3/cannot-find-user-in-home-directory-488928/)

shipon_97 10-03-2006 12:27 AM

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 .

fatrandy13 10-03-2006 01:29 AM

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

useradd sql -d /home/sql

lido 10-15-2006 04:42 AM

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?


All times are GMT -5. The time now is 01:18 PM.