Skip to content

Instantly share code, notes, and snippets.

@jamiejackson
Last active May 1, 2017 19:44
Show Gist options
  • Save jamiejackson/460ba0a6526d6251554a157821f526da to your computer and use it in GitHub Desktop.
Save jamiejackson/460ba0a6526d6251554a157821f526da to your computer and use it in GitHub Desktop.
#
# Sample auto.master file
# This is a 'master' automounter map and it has the following format:
# mount-point [map-type[,format]:]map [options]
# For details of the format look at auto.master(5).
#
/misc /etc/auto.misc
#
# NOTE: mounts done from a hosts map will be mounted with the
# "nosuid" and "nodev" options unless the "suid" and "dev"
# options are explicitly given.
#
/net -hosts
#
# Include central master map if it can be found using
# nsswitch sources.
#
# Note that if there are entries for /net or /misc (as
# above) in the included master map any keys that are the
# same will not be seen as the first read key seen takes
# precedence.
#
+auto.master
/mnt/non-icf/my /etc/auto.my_sftp_test uid=492,gid=488,--timeout=60,--ghost,--debug
/mnt/non-icf/my /etc/auto.my_sftp_prod uid=492,gid=488,--timeout=60,--ghost,--debug
# nodev: no special devices
# noatime: don't bother setting access time on the remote files
# nonempty: mount even if there are files at the mount point
# allow_other: allow all users to access files
# debug: print debugging on each (re)mount
# reconnect: reconnect if local machine is suspended, etc. probably don't need with autofs.
secureftp -fstype=fuse,ro,nodev,noatime,allow_other,IdentityFile=/root/.ssh/my_sftp_key :sshfs\#XXXXX@secureftp.my.com\:/export/home/ICFfiles
# nodev: no special devices
# noatime: don't bother setting access time on the remote files
# nonempty: mount even if there are files at the mount point
# allow_other: allow all users to access files
# debug: print debugging on each (re)mount
# reconnect: reconnect if local machine is suspended, etc. probably don't need with autofs.
testsftp -fstype=fuse,ro,nodev,noatime,allow_other,IdentityFile=/root/.ssh/hud_sftp_key :sshfs\#XXXXX@testsftp.my.com\:/export/home/ICFfiles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment