linux_wiki:auto_mount_network_shares

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:auto_mount_network_shares [2018/03/20 23:45]
billdozor [Indirect Map Example]
linux_wiki:auto_mount_network_shares [2019/05/25 23:50] (current)
Line 66: Line 66:
 <code bash> <code bash>
 # File: /etc/auto.direct # File: /etc/auto.direct
 +# Reminder of master map contents for reference:
 +#   /    /etc/auto.direct
  
 +# Direct mappings: local mountpoint from remote mountpoint
 /network-shares/nfs-share    -rw    192.168.1.151:/data/nfs /network-shares/nfs-share    -rw    192.168.1.151:/data/nfs
 /network-shares/nfs-share2   -rw    192.168.1.151:/data/nfs2 /network-shares/nfs-share2   -rw    192.168.1.151:/data/nfs2
-/network-shares/cifs  -fstype=cifs,rw,credentials=/root/.ssh/.cifs-share  ://192.168.1.151/cifs-share+/network-shares/cifs  -fstype=cifs,rw,credentials=/root/.ssh/.cifs-share  //192.168.1.151/cifs-share
 </code> </code>
   * First column => local mount point   * First column => local mount point
Line 84: Line 87:
 <code bash> <code bash>
 # File: /etc/auto.home # File: /etc/auto.home
 +# Reminder of master map contents for reference:
 +#   /home  /etc/auto.home --timeout=600
  
 +# Indirect mappings: sub directories of /home/
 yoda    192.168.1.151:/home/yoda yoda    192.168.1.151:/home/yoda
 luke    192.168.1.151:/home/luke luke    192.168.1.151:/home/luke
Line 102: Line 108:
 *    192.168.1.151:/home/& *    192.168.1.151:/home/&
 </code> </code>
-  * "*" is assigned the directory that is accessed. If someone tried to access "/home/users/luke", the "*" value is "luke". +  * "*" is assigned the directory that is accessed. If someone tried to access "/home/yoda", the "*" value is "yoda". 
-  * The "&" in the remote server line is replaced by the key in the first column (*). So if someone accesses "/home/users/luke", the remote system (myserver.com) gets an access attempt to "/nfsshare/luke"+  * The "&" in the remote server line is replaced by the key in the first column (*). So if someone accesses local "/home/yoda", the remote system (192.168.1.151) gets an access attempt to "/home/yoda"
  
 ---- ----
  • linux_wiki/auto_mount_network_shares.1521603912.txt.gz
  • Last modified: 2019/05/25 23:50
  • (external edit)