Bug 693270 - Cannot change to home directory on login
Summary: Cannot change to home directory on login
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: autofs
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ian Kent
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-04 04:58 UTC by Braden McDaniel
Modified: 2013-01-10 06:33 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-04-10 21:22:34 UTC
Type: ---


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.