LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Users are not getting their home directory in rhel5 (https://www.linuxquestions.org/questions/linux-server-73/users-are-not-getting-their-home-directory-in-rhel5-823867/)

csravi88 08-03-2010 11:13 AM

Users are not getting their home directory in rhel5
 
Hi,
I don't know what i have done by mistake.
[root@server1 ~]# su - user
su: warning: cannot change directory to /home/user: Permission denied
-bash: /home/user/.bash_profile: Permission denied
-bash-3.2$ cd ~
-bash: cd: /home/user: Permission denied
-bash-3.2$
could somebody help me out..

serafean 08-03-2010 11:16 AM

Hi, first check that /home isn't an unmounted partition.
Second, check that the directories exist.
Third, try changing the ownership manually :
Code:

chown -R user:user /home/user
don't forget the -m option when creating a user using useradd.

csravi88 08-03-2010 11:58 AM

Quote:

Originally Posted by csravi88 (Post 4054218)
Hi,
I don't know what i have done by mistake.
[root@server1 ~]# su - user
su: warning: cannot change directory to /home/user: Permission denied
-bash: /home/user/.bash_profile: Permission denied
-bash-3.2$ cd ~
-bash: cd: /home/user: Permission denied
-bash-3.2$
could somebody help me out..

Hi seratean, Thanx, but same issue arising with evey user..


All times are GMT -5. The time now is 08:20 AM.