LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2016, 10:24 PM   #1
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120

Rep: Reputation: 15
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?
 
Old 03-08-2016, 02:03 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
http://unix.stackexchange.com/questi...nother-machine
 
1 members found this post helpful.
Old 03-08-2016, 08:53 AM   #3
qajaq
Member
 
Registered: Sep 2008
Location: north-central Florida
Distribution: Lubuntu 19.04, Kubuntu 18.04
Posts: 120

Original Poster
Rep: Reputation: 15
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'Permission denied' on client of nfs-mounted directory RileyTheWiley Linux - Networking 2 01-20-2014 06:55 PM
[SOLVED] nfs: root: write to the server denied, read works. Why? JZL240I-U Linux - Software 8 03-15-2013 02:24 AM
[SOLVED] cannot execute binary on directory mounted by nfs (Debian wheezy) Permission denied. kaz2100 Debian 4 02-16-2012 08:12 PM
Cannot write to /misc directory - permission denied as root etuhs Fedora 4 06-01-2007 07:20 AM
Mounted a filesystem as root.How does one give write-permission to a user? Mr.DeVillie Linux - Software 4 02-08-2006 07:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration