LinuxQuestions.org

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

csravi88 08-03-2010 12:13 PM

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 12:16 PM

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 12:58 PM

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 07:36 AM.