LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-01-2008, 04:26 PM   #1
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Rep: Reputation: 15
Question NFS problem: "Could not chdir to home directory /home/USER: Permission denied"


Hi,

I have a running Network File Server serving many clients properly. Recently I have added one client (Fedora 8, x86_64), which listens to a YP server for users as well.

The file systems and users are exported fine. But, whenever I try to logon to the client as an user, I get the following error:

Code:
Could not chdir to home directory /home/USER: Permission denied
Then the user is left at the / directory. But, after that the user can do 'cd /home/USER' alright and everything works fine. Also, if I add 'cd /home/USER' in the .bashrc file, I can reach the home directory followed by that error message!

Please suggest where I might have gone wrong in this new client installation.
 
Old 04-01-2008, 04:51 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
logged in as the user in question, what is the output of "id"?
then, if you "ls -n /home | grep USER" are the UID & GID the same as the output of "id"?

Sounds like there's a uid mapping problem.
 
Old 04-02-2008, 05:31 AM   #3
sumanc
LQ Newbie
 
Registered: Mar 2004
Location: Bangalore, India
Distribution: Ubuntu 9.04, Fedora 10
Posts: 23

Original Poster
Rep: Reputation: 15
Unhappy

Quote:
Originally Posted by BrianK View Post
logged in as the user in question, what is the output of "id"?
then, if you "ls -n /home | grep USER" are the UID & GID the same as the output of "id"?

Sounds like there's a uid mapping problem.

Actually, they are the same. Here are the outputs:

Code:
[suman@node48 ~]$ ls -n /home/ | grep suman
drwxrwx--- 29 507 507  4096 2008-04-02 02:49 suman
[suman@node48 ~]$ id
uid=507(suman) gid=507(suman) groups=507(suman) context=unconfined_u:system_r:unconfined_t:s0
 
Old 07-22-2010, 12:14 PM   #4
atavus1
LQ Newbie
 
Registered: Jul 2010
Location: Bogota
Distribution: fedora
Posts: 7

Rep: Reputation: 0
you have two options: disable seLinux or need include de /home/USER in the selinux context... may be you move the /home/USER directory. try one of this.
 
Old 07-22-2010, 04:12 PM   #5
BinWondrin
Member
 
Registered: Jun 2008
Distribution: Fedora, RHEL, Ubuntu
Posts: 33

Rep: Reputation: 15
set selinux to permissive

Rather than disabling selinux which would mean that the system would have to change the security context of all of your files I would suggest to change it from enforcing to permissive.
It will still monitor all file access but it will not prevent any file access.
the command to do this is:
setenforce permissive

to check if it work type
getenforce
and hit enter.

Just a suggestion.
;-)

BinWondrin
 
  


Reply

Tags
nfs, nis


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
Exim4 undeliverable emails"failed to chdir to /home/paul" PK2K Linux - Software 0 05-15-2006 06:31 PM
NFS "permission denied" after reboot BenjiF Slackware 8 12-27-2005 02:28 PM
permission denied to home directory ekdya Debian 3 11-08-2005 04:24 PM
permissions of my /home/"user" directory error darkleaf Linux - Software 10 09-26-2004 02:08 AM
Can't access mounted NFS directory: "permission denied" SparceMatrix Linux - General 6 03-08-2003 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration