LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 08-03-2010, 12:13 PM   #1
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Rep: Reputation: 0
Question 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..
 
Old 08-03-2010, 12:16 PM   #2
serafean
Member
 
Registered: Mar 2006
Location: Czech Republic
Distribution: Gentoo, Chakra
Posts: 871
Blog Entries: 9

Rep: Reputation: 103Reputation: 103
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.
 
Old 08-03-2010, 12:58 PM   #3
csravi88
LQ Newbie
 
Registered: Jun 2010
Distribution: RHEL, CentOS, Debian, AIX
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by csravi88 View Post
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..
 
  


Reply

Tags
home, user


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
adding a directory to users path in RHEL5 h0mer0 Linux - Enterprise 3 10-29-2009 10:21 PM
Users Home Directory rahmad Linux - Server 7 07-31-2008 03:24 AM
Keeping Users in their Home Directory bluefusionx Linux - Software 3 09-15-2006 06:42 PM
Adding users with no home directory keysorsoze Linux - Newbie 2 04-02-2006 10:52 PM
Users can only see home directory bluenix Linux - General 20 03-12-2005 09:51 AM


All times are GMT -5. The time now is 12:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration