[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
howtos:network_services:nfs-quick_and_dirty_setup [2014/01/22 04:48 (UTC)] – Just learned about the <file> tag... had to add arfonhowtos:network_services:nfs-quick_and_dirty_setup [2018/05/27 21:27 (UTC)] – [NFS - Quick and Dirty Setup] Tested on 14.2, still good. Nice howto :-) bifferos
Line 2: Line 2:
 ====== NFS - Quick and Dirty Setup ====== ====== NFS - Quick and Dirty Setup ======
  
-Known to work on Slackware 14 14.1 \\ +Known to work on Slackware 1414.1 and 14.2 \\ 
  
 ====== Assumptions ====== ====== Assumptions ======
Line 93: Line 93:
 3) Remount the NFS share 3) Remount the NFS share
  
 +4) No Root Squash:
 +There are many options for NFS and I want to keep this article short but effective so I am leaving out many of the various configuration items that you could do. However there is one option that is worth mentioning, **no_root_squash**. By default NFS will downgrade any files created with the root permissions to the nobody user. This is a security feature that prevents privileges from being shared unless specifically requested.
 +If I create a file as the root user on the client on the NFS share, by default that file is owned by the nobody user.
 +<code>
 + root@client:~# touch /shared/nfs1/file2 
 + root@server:/nfs# ls -la file2
 + -rw-r--r-- 1 nobody nogroup 0 Nov 18 18:06 file2
 +</code>
 +Sometimes it is important to share files that are owned as root with the proper permissions, in these cases this can be done by simply adding the **no_root_squash** attribute to the **/etc/exports** configuration.
  
- +**Edit the /etc/exports file:** 
 +<code> 
 +/nfs_share 192.168.1.1/24(rw,sync,no_root_squash) 
 +</code>
 ====== Sources ====== ====== Sources ======
 <!-- If you are copying information from another source, then specify that source --> <!-- If you are copying information from another source, then specify that source -->
 howtos:network_services:nfs-quick_and_dirty_setup ()