NFS config files?

Nils Kassube kassube at gmx.net
Tue Aug 11 08:10:45 UTC 2020


Karl Auer wrote:
> If anyone out there has a working NFS mount, I would very much
> appreciate seeing
>
> - your /etc/exports
> - the client's fstab entry
> - "ls -lad" for the exported directory
> - "ls -lad" for the client's mount point.

l300: ~/ > cat /etc/exports
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
/               192.168.242.128/255.255.255.128(rw,async,no_root_squash,no_subtree_check,crossmnt)
/media/sda1     192.168.242.128/255.255.255.128(rw,async,no_root_squash,no_subtree_check,crossmnt)
l300: ~/ > ls -lad / /media/sda1
drwxr-xr-x 24 root root 4096 Aug 11 09:21 /
drwxrwxrwx  1 root root 8192 Mai 22  2019 /media/sda1
l300: ~/ > cat /etc/issue
Ubuntu 18.04.5 LTS \n \l

Attention: The machine is on a trusted LAN where I am the only user and I also want to access files owned by root via nfs. Of course that is a bad idea if anybody else has access to the LAN. So please read the chapter about "User ID Mapping" of the exports man page before you reuse the entries above.

schleppi: ~/ > grep l300 /etc/fstab
l300.lan:/              /media/l300             nfs     noauto,users,soft,timeo=60,noatime 0 0
schleppi: ~/ > ls -lad /media/l300
drwxr-xr-x 2 root root 4096 Aug 11 08:43 /media/l300
schleppi: ~/ > mount /media/l300
schleppi: ~/ > ls -lad /media/l300 /media/l300/media/sda1 /media/l300/media/sda1/WINDOWS
drwxr-xr-x 24 root root   4096 Aug 11 09:21 /media/l300
drwxrwxrwx  1 root root   8192 Mai 22  2019 /media/l300/media/sda1
drwxrwxrwx  1 root root 188416 Jul  5  2015 /media/l300/media/sda1/WINDOWS
schleppi: ~/ > cat /etc/issue
Ubuntu 18.04.5 LTS \n \l

Attention: There is only a single user for this machine (me), so please check the mount options before you reuse the entry above.


Nils





More information about the ubuntu-users mailing list