Quote:
Originally Posted by gilead
What user are you logging into NFS as from the client session? If it's root and you're not using the no_root_squash setting you'll get the permission denied error.
|
It was my understanding that
root_squash simply mapped UID and GID to 'nobody', which prevented direct access to files and directories that were not world-readable. Naturally, this has prevented me from
accessing certain files and directories as root, but I don't quite follow how this would prevent me from
mounting an NFS share, as long as I don't try to access it. It seems to me that this would make it impossible to mount NFS shares at boot time - since the init scripts are run as root. Am I misunderstanding something?
I suppose it's a moot point anyway, since I've mostly tried to mount the share as a normal user (via automount).
Thanks for the links. As you say, I've probably already seen them (either in the last few days, or back when I originally set up NFS), but I'll look through them nonetheless, just to make sure I'm not overlooking something.
The frustrating thing is, I'm starting to have intermittent mounting success. A few hours ago, I logged into my mom's laptop via SSH, and attempted to cd into the shared music directory. The automounter accessed the share without problem, and she than played music on her machine for a couple of hours. After she stopped, the automounter timeout was reached, and the NFS shared was unmounted. Since then, I've been unable to remount the share - either manually, or via automount.
To make matters worse, I'm getting strange messages in
/var/log/messages:
automount[3165]: attempting to mount entry /home/tls
automount[5589]: lookup(file): lookup for tls failed
automount[3165]: attempting to mount entry /home/i686
automount[5590]: lookup(file): lookup for i686 failed
automount[3165]: attempting to mount entry /home/librt.so.1
automount[5591]: lookup(file): lookup for librt.so.1 failed
automount[3165]: attempting to mount entry /home/libc.so.6
automount[5592]: lookup(file): lookup for libc.so.6 failed
automount[3165]: attempting to mount entry /home/libpthread.so.0
automount[5593]: lookup(file): lookup for libpthread.so.0 failed
automount[3165]: attempting to mount entry /home/libnss_compat.so.2
automount[5594]: lookup(file): lookup for libnss_compat.so.2 failed
automount[3165]: attempting to mount entry /home/libnsl.so.1
automount[5595]: lookup(file): lookup for libnsl.so.1 failed
automount[3165]: attempting to mount entry /home/libnss_nis.so.2
automount[5596]: lookup(file): lookup for libnss_nis.so.2 failed
automount[3165]: attempting to mount entry /home/libnss_files.so.2
automount[5597]: lookup(file): lookup for libnss_files.so.2 failed
These messages have shown up in the logs on my laptop, my mom's laptop, and my desktop machine. At first glance, they seem to follow the first failed attempt to mount a share after a reboot. I'm starting to worry that I'm running into some obscure NFS or automount bug(s), either in the kernel, or in the user-space tools.
I'll try booting some older kernels, and see whether there is any effect.