Anonymous 发表于 2019-9-17 20:06:28

课程第29次


/etc/auto.master
/misc   /etc/auto.misc
/home/guests    /etc/auto.guests
/sambamount   /etc/auto.sambamount
#
# 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 /etc/auto.master.d/*.autofs
# The included files must conform to the format of this file.
#
+dir:/etc/auto.master.d
#
# 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




/etc/auto.sambamount
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

zhang3          -fstype=cifs,username=zhang3,password=zhang3samba       ://192.168.0.103/sharedir
zhang3home            -fstype=cifs,username=zhang3,password=zhang3samba       ://192.168.0.103/zhang3

# the following entries are samples to pique your imagination
#linux          -ro,soft,intr         ftp.example.org:/pub/linux
#boot         -fstype=ext2            :/dev/hda1
#floppy         -fstype=auto            :/dev/fd0
#floppy         -fstype=ext2            :/dev/fd0
#e2floppy       -fstype=ext2            :/dev/fd0
#jaz            -fstype=ext2            :/dev/sdc1
#removable      -fstype=ext2            :/dev/hdd

页: [1]
查看完整版本: 课程第29次