Bug 693270

Summary: Cannot change to home directory on login
Product: [Fedora] Fedora Reporter: Braden McDaniel <braden>
Component: autofsAssignee: Ian Kent <ikent>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: dcantrell, ikent
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-10 21:22:34 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Braden McDaniel 2011-04-04 04:58:49 UTC
Description of problem:
I automount NFS4 home directories using autofs.

When I log in at a local terminal, I see:

 -- braden: /home/braden: change directory failed: Permission denied
Logging in with home = "/".

However, I'm immediately able to manually change to this directory manually upon getting a prompt:

$ cd
$ pwd
/home/braden

Comment 1 Ian Kent 2011-04-05 02:16:21 UTC
How about, at least, some information?

What does the mount map look like?
What is the entry in the master map?
What is the server distribution and version?

Comment 2 Braden McDaniel 2011-04-05 03:40:47 UTC
The server is Fedora 14.  It has nfs-utils version 1.2.3-5.

On the Fedora 15 client:

# cat /etc/auto.home
*               -fstype=nfs4    rail:/home/&


# cat /etc/auto.master
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
#
/misc	/etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
#	"nosuid" and "nodev" options unless the "suid" and "dev"
#	options are explicitly given.
#
/net	-hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master

/home	auto.home
/-      auto.direct

Comment 3 Ian Kent 2011-04-05 07:40:54 UTC
And what's in /etc/exports on the server?

Please post a debug log.
For information about how to get a debug log see:
http://people.redhat.com/jmoyer

Comment 4 Braden McDaniel 2011-04-10 21:22:34 UTC
The problem here was that I had not done:

# setsebool -P use_nfs_home_dirs 1

I suspect we're done here.  I think Fedora's installer really needs to be improved to set up the machine to use non-local home directories; but that's probably a big task.