Article 5C7F2 Share USB drive via NFS / access rights

Share USB drive via NFS / access rights

by
oe8bck
from LinuxQuestions.org on (#5C7F2)
I would like to share a temporarily plugged-in USB drive with NFS, where it then should be auto-mounted.

First step would be a manual mount, but the access rights are not correct. I tried to find out what's going on, but I am stuck. Maybe somebody can help me?

Situation is as follows:

Laptop with plugged in USB-drive at /dev/sdd1 mounted on /media/user/backup and exporting it via NFS (no_root_squash and no_all_squash given) and Server which wants access.
Code:$ mount|grep sdd1
/dev/sdd1 on /media/user/backup type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2)
$ ls -ldn /media/user/backup
drwxrwxrwx 5 0 0 4096 Okt 24 20:24 /media/user/backup
$ sudo exportfs -v
/media 192.1.1.1/24(ro,async,wdelay,no_root_squash,no_subtree_check,sec=sys,ro,secure,no_root_squash,no_all_squash)On the server mounting works but access is not possible:
Code:$ mount|grep media
192.1.1.98:/media on /mnt/temp type nfs4 (rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.1.1.131,local_lock=none,addr=1.1.1.98)
$ls -lnR /mnt/temp/user/
/mnt/temp/user/:
drwx------ 2 65534 4294967294 4096 Dec 30 10:38 backup
ls: cannot open directory '/mnt/temp/user/backup': Permission deniedAny hints how to get access to the sub-directory when the mount of the USB is done as root? BTW I am running Linux Mint 20 Ulyana on both hosts.latest?d=yIl2AUoC8zA latest?i=yjVXKVOIlUA:zMYZt_h6qfs:F7zBnMy latest?i=yjVXKVOIlUA:zMYZt_h6qfs:V_sGLiP latest?d=qj6IDK7rITs latest?i=yjVXKVOIlUA:zMYZt_h6qfs:gIN9vFwyjVXKVOIlUA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments