LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   root denied permission to nfs mounted directory but user can read and write (https://www.linuxquestions.org/questions/linux-networking-3/root-denied-permission-to-nfs-mounted-directory-but-user-can-read-and-write-4175574268/)

qajaq 03-07-2016 10:24 PM

root denied permission to nfs mounted directory but user can read and write
 
I've set up a desktop tower as a file server using NFS, and I have two laptops as client machines. Both clients mount the NFS-server directory as expected. However, as root (on either machine) I cannot cd into nor list (ls) the mounted directory (/Kodiak).

Attempting to list the directory (as root) I get the error message:
Quote:

cannot open directory /Kodiak: permission denied
Attempting to cd into the directory results in essentially the same error message.

The strange thing is that when I exit back to my normal user, I can list the NFS directory, cd into it, manipulate it with the GUI file manager (Dolphin), and write to it with rsync.

Any ideas where I should look to figure out why the user but not root can read the directory?

zhjim 03-08-2016 02:03 AM

http://unix.stackexchange.com/questi...nother-machine

qajaq 03-08-2016 08:53 AM

Added no_root_squash to the options list after each client, and that did the trick. Thanks! I'd read something about no_root_squash in some other places, but they were not specific about what it does nor how to use it. Your link was clear and effective.


All times are GMT -5. The time now is 04:27 PM.