|
|
auto.master文件
#
# $Id: auto.master,v 1.4 2005/01/04 14:36:54 raven Exp $
#
# Sample auto.master file
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# For details of the format look at autofs(5).
/misc /etc/auto.misc --timeout=60
#/smb /etc/auto.smb
#/net /etc/auto.net
auot.misc文件
#
# $Id: auto.misc,v 1.2 2003/09/29 08:22:35 raven Exp $
#
# 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
game -fstype=ntfs,ro,utf8 :/dev/hda5
#movie -fstype=auto :/dev/hda6
#disk2 -fstype=auto :/dev/hdb2
# 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
停止autofs服务,又重新启动后系统日志如下:
[root@linux /]# service autofs stop
停止 automount: [确定]
[root@linux /]# service autofs start
启动 automount: [确定]
[root@linux /]# tail /var/log/messages
Feb 6 09:50:51 linux kernel: ATM dev 0: poll status: error -5
Feb 6 09:50:54 linux automount[8931]: mount_autofs: already mounted
Feb 6 09:50:54 linux automount[8931]: /misc: mount failed!
Feb 6 09:50:56 linux kernel: ATM dev 0: poll status: error -5
Feb 6 09:51:31 linux last message repeated 7 times
Feb 6 09:52:31 linux last message repeated 12 times
Feb 6 09:52:35 linux kernel: audit(1170726755.054:57): avc: denied { rmdir } for pid=8180 comm="automount" name="misc" dev=hdb6 ino=1853194 scontext=user_u:system_r:automount_t:s0 tcontext=user_u bject_r:root_t:s0 tclass=dir
Feb 6 09:52:36 linux kernel: ATM dev 0: poll status: error -5
Feb 6 09:52:40 linux kernel: SELinux: initialized (dev autofs, type autofs), uses genfs_contexts
Feb 6 09:52:41 linux kernel: ATM dev 0: poll status: error -5
misc目录是用root用户创建的 |
|