LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-17-2018, 09:23 AM   #1
maverick6664
LQ Newbie
 
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8

Rep: Reputation: Disabled
Cannot write/modify nfs shared files/directories on Fedora 27


Hi all,

I am an old Linux user, but new to nfs (actually it's nfs4). Now I'm running two Fedora 27/28 machines, and having trouble writing/modifying shared files/directories. It looks simple, but I cannot solve. So I need help. It *must* be simple.

Fedora 27 is the nfs server. Its /etc/exports is
Code:
/backup/Fedora	*(rw)
I also ran "exportfs -ra".
I started nfs daemon as
Code:
# systemctl start nfs-server rpcbind
and mounted it on the same machine as
Code:
# mount -t nfs4 -o rw localhost:/backup/Fedora /mnt
It's simple, isn't it?

However, I cannot write anything on /mnt directory as root. Here I show
Code:
[root@Maverick tetsuji]# ls -al /mnt
total 79471728
drwxrwxr-x   2 root root        4096 Apr 17 14:34 .
dr-xr-xr-x. 21 root root        4096 Apr 13 16:05 ..
-rw-r--r--   1 root root 16078482335 Apr 11 13:14 backup-2018-04-11-1225.tar.xz.gpg
-rw-r--r--   1 root root 16349498763 Apr 12 21:31 backup-2018-04-12-2040.tar.xz.gpg
-rw-r--r--   1 root root 16615554300 Apr 15 14:30 backup-2018-04-15-1247.tar.xz.gpg
-rw-r--r--   1 root root 15833950080 Apr 16 10:53 backup-2018-04-16-1001.tar.xz.gpg
-rw-r--r--   1 root root 16501530369 Apr 17 15:35 backup-2018-04-17-1434.tar.xz.gpg
[root@Maverick tetsuji]# cat > /mnt/ttt
bash: /mnt/ttt: Permission denied
root's write permission of /mnt looks fine, but it's impossible to write on /mnt. Like this, "chmod a+w /mnt/*" fails as
Code:
chmod: changing permissions of '/mnt/backup-2018-04-11-1225.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-12-2040.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-15-1247.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-16-1001.tar.xz.gpg': Operation not permitted
chmod: changing permissions of '/mnt/backup-2018-04-17-1434.tar.xz.gpg': Operation not permitted
I must be doing something wrong. What's wrong with my settings?

For reference, mount command shows
Code:
/dev/sde1 on /backup type ext4 (rw,relatime,x-systemd.device-timeout=0)
localhost:/backup/Fedora on /mnt type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp6,timeo=600,retrans=2,sec=sys,clientaddr=::1,local_lock=none,addr=::1)
Please help me!

Thanks in advance!

Last edited by maverick6664; 04-17-2018 at 09:28 AM.
 
Old 04-17-2018, 01:21 PM   #2
maverick6664
LQ Newbie
 
Registered: Apr 2018
Location: Tokyo Japan
Posts: 8

Original Poster
Rep: Reputation: Disabled
Self reply.

I found no_root_squash was missing in /etc/exports.....that's all! It's in the midnight here. Good night.
 
Old 08-06-2018, 08:01 AM   #3
bhangad
LQ Newbie
 
Registered: Jul 2018
Posts: 2

Rep: Reputation: Disabled
thanks

was having the similar issue, thanks for the reply.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Script to modify files in sub-directories - Need help GottaGoFast Programming 1 12-29-2012 04:05 PM
Script to modify files in sub-directories - Need help GottaGoFast Programming 1 12-28-2012 04:53 PM
Shared home directories (NFS) across different distributions darkmuck Linux - Software 1 05-27-2011 12:05 PM
nfs mount - shared directories on a networked machine kh_ibrahim Linux - Software 2 08-16-2004 01:05 AM
Samba 3: Can't write to shared directories from Windows robintw Linux - Networking 10 07-31-2004 09:13 PM

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

All times are GMT -5. The time now is 12:06 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