linux_wiki:mount_and_unmount_cifs_and_nfs_network_file_systems

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux_wiki:mount_and_unmount_cifs_and_nfs_network_file_systems [2016/03/03 21:52]
billdozor [Mount And Unmount Cifs And Nfs Network File Systems]
linux_wiki:mount_and_unmount_cifs_and_nfs_network_file_systems [2019/05/25 23:50] (current)
Line 7: Line 7:
 ---- ----
  
-==== Example Data ====+===== Example Data =====
  
 The examples below assume the following server/share information: The examples below assume the following server/share information:
Line 18: Line 18:
 ---- ----
  
-==== CIFS ====+===== CIFS =====
  
 Mounting a Common Internet File System (CIFS) share. Mounting a Common Internet File System (CIFS) share.
Line 28: Line 28:
   * samba-client optional for viewing shares.   * samba-client optional for viewing shares.
  
 +\\
 **Create target mount point, list shares** **Create target mount point, list shares**
 <code bash> <code bash>
Line 34: Line 35:
 </code> </code>
  
 +\\
 **Temporarily Mount Share** **Temporarily Mount Share**
 <code bash> <code bash>
Line 39: Line 41:
 </code> </code>
  
 +\\
 **Persistent Mount Share: Edit /etc/fstab, Add Entry/Save** **Persistent Mount Share: Edit /etc/fstab, Add Entry/Save**
 <code bash> <code bash>
Line 46: Line 49:
 </code> </code>
  
 +\\
 **More Secure Alternative: CIFS with credentials file** **More Secure Alternative: CIFS with credentials file**
 <code bash> <code bash>
Line 52: Line 56:
 //192.168.1.100/public-docs /mnt/cifs-share cifs credentials=/root/.cifs_mount 0 0 //192.168.1.100/public-docs /mnt/cifs-share cifs credentials=/root/.cifs_mount 0 0
 </code> </code>
-  * /root/.cifs_mount file contents+  * /root/.cifs_mount file contents<code text>username=rjones
-    * <code text>username=rjones+
 password=123456</code> password=123456</code>
-      * File should be chmod 600+      * File should be chmod 600 and owned by root due to security concerns of a username/password being in a text file.
  
 +\\
 **Mount all and Verify** **Mount all and Verify**
 <code bash> <code bash>
Line 65: Line 69:
 ---- ----
  
-==== NFS ====+===== NFS =====
  
 Mounting a Network File System (NFS) share. Mounting a Network File System (NFS) share.
Line 74: Line 78:
 </code> </code>
  
 +\\
 **Create target mount point** **Create target mount point**
 <code bash> <code bash>
Line 79: Line 84:
 </code> </code>
  
 +\\
 **Temporarily Mount Share** **Temporarily Mount Share**
 <code bash> <code bash>
Line 84: Line 90:
 </code> </code>
  
 +\\
 **Persistent Mount Share: Edit /etc/fstab, Add Entry/Save** **Persistent Mount Share: Edit /etc/fstab, Add Entry/Save**
 <code bash> <code bash>
Line 91: Line 98:
 </code> </code>
  
 +\\
 **Mount all and Verify** **Mount all and Verify**
 <code bash> <code bash>
  • linux_wiki/mount_and_unmount_cifs_and_nfs_network_file_systems.1457059923.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)