[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.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:network_services:nfs-quick_and_dirty_setup [2014/01/22 04:48 (UTC)] – Just learned about the <file> tag... had to add arfon | howtos:network_services:nfs-quick_and_dirty_setup [2019/10/08 04:38 (UTC)] (current) – Fix filename typo per Skaendo on LQ forum bassmadrigal | ||
---|---|---|---|
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 14, 14.1 and 14.2 \\ |
====== Assumptions ====== | ====== Assumptions ====== | ||
Line 72: | Line 72: | ||
chmod 755 / | chmod 755 / | ||
/ | / | ||
- | / | + | /etc/rc.d/rc.rpc start |
exportfs -a</ | exportfs -a</ | ||
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. | ||
+ | < | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | Sometimes it is important to share files that are owned as root with the proper permissions, | ||
- | + | **Edit the / | |
+ | < | ||
+ | /nfs_share 192.168.1.1/ | ||
+ | </ | ||
====== 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 --> |