Hide Forgot
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
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?
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
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
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.