LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1094|回复: 1

autofs不能自动挂载,配置文件及系统日志见內,请指点

[复制链接]
发表于 2007-2-6 10:01:49 | 显示全部楼层 |阅读模式
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_ubject_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用户创建的
 楼主| 发表于 2007-2-7 14:49:12 | 显示全部楼层
已经好用了,就是普通用户不能访问ntfs分区
回复 支持 反对

使用道具 举报

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

本版积分规则

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