Bo's Oracle Station

查看: 2060|回复: 0

课程第29次

[复制链接]
匿名
匿名  发表于 2019-9-17 20:06:28 |阅读模式

/etc/auto.master
  1. /misc   /etc/auto.misc
  2. /home/guests    /etc/auto.guests
  3. /sambamount     /etc/auto.sambamount
  4. #
  5. # NOTE: mounts done from a hosts map will be mounted with the
  6. #       "nosuid" and "nodev" options unless the "suid" and "dev"
  7. #       options are explicitly given.
  8. #
  9. /net    -hosts
  10. #
  11. # Include /etc/auto.master.d/*.autofs
  12. # The included files must conform to the format of this file.
  13. #
  14. +dir:/etc/auto.master.d
  15. #
  16. # Include central master map if it can be found using
  17. # nsswitch sources.
  18. #
  19. # Note that if there are entries for /net or /misc (as
  20. # above) in the included master map any keys that are the
  21. # same will not be seen as the first read key seen takes
  22. # precedence.
  23. #
  24. +auto.master
复制代码





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

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

  6. # the following entries are samples to pique your imagination
  7. #linux          -ro,soft,intr           ftp.example.org:/pub/linux
  8. #boot           -fstype=ext2            :/dev/hda1
  9. #floppy         -fstype=auto            :/dev/fd0
  10. #floppy         -fstype=ext2            :/dev/fd0
  11. #e2floppy       -fstype=ext2            :/dev/fd0
  12. #jaz            -fstype=ext2            :/dev/sdc1
  13. #removable      -fstype=ext2            :/dev/hdd
复制代码


a.png
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-11-23 18:21 , Processed in 0.045197 second(s), 27 queries .

快速回复 返回顶部 返回列表