[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 revisionLast revisionBoth sides next revision | ||
howtos:network_services:nfs-quick_and_dirty_setup [2014/01/20 23:15 (UTC)] – [Problems/Solutions] Fixed code blocking arfon | howtos: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 1: | Line 1: | ||
<!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> | ||
- | Known to work on Slackware 14 & 14.1 \\ | + | ====== NFS - Quick and Dirty Setup ====== |
+ | |||
+ | Known to work on Slackware 14, 14.1 and 14.2 \\ | ||
====== Assumptions ====== | ====== Assumptions ====== | ||
Line 17: | Line 19: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code>/ | + | <file sh / |
Start the NFS and RPC daemons \\ | Start the NFS and RPC daemons \\ | ||
Line 23: | Line 25: | ||
chmod 755 / | chmod 755 / | ||
/ | / | ||
- | / | + | /etc/rc.d/rc.rpc start</ |
Export the shares \\ | Export the shares \\ | ||
Line 34: | Line 36: | ||
Create the mount point \\ | Create the mount point \\ | ||
< | < | ||
+ | Start the RPC daemon \\ | ||
+ | < | ||
+ | / | ||
Line 46: | Line 51: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code> | + | <file sh /etc/fstab> |
**SEMI-AUTO-MOUNT** \\ | **SEMI-AUTO-MOUNT** \\ | ||
Line 52: | Line 57: | ||
< | < | ||
add: \\ | add: \\ | ||
- | <code> | + | <file sh /etc/fstab> |
then when you want to mount, just run: \\ | then when you want to mount, just run: \\ | ||
< | < | ||
Line 72: | Line 77: | ||
**CLIENT:** \\ | **CLIENT:** \\ | ||
< | < | ||
+ | chmod 755 / | ||
+ | / | ||
echo " | echo " | ||
mount / | mount / | ||
Line 86: | 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 --> |