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 . |
i'm not sure if useradd definitely creates a home directory by default, try using the -d option:
useradd sql -d /home/sql |
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. |