配置完smb后,出现下面错误,无法访问。
context=user_u:system_r:smbd_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
Jul 25 13:44:41 drp smbd[12712]: [2008/07/25 13:44:41, 0] smbd/service.c:make_connection_snum(1003)
Jul 25 13:44:41 drp smbd[12712]: '/home/test' does not exist or permission denied when connecting to [zwh] Error was 权限不够
Jul 25 13:44:42 drp smbd[12712]: [2008/07/25 13:44:42, 0] smbd/service.c:make_connection_snum(1003)
Jul 25 13:44:42 drp kernel: audit(1216964682.523:195): avc: denied { search } for pid=12712 comm="smbd" name="/" dev=sda6 ino=2 scontext=user_u:system_r:smbd_t:s0 tcontext=system_u:object_r:home_root_t:s0 tclass=dir
Jul 25 13:44:42 drp smbd[12712]: '/home/test' does not exist or permission denied when connecting to [zwh] Error was 权限不够
Jul 25 13:47:46 drp restorecond: Will not restore a file with more than one hard link (/etc/resolv.conf) Invalid argument
Jul 25 13:48:06 drp kernel: audit(1216964886.760:196): enforcing=0 old_enforcing=1 auid=4294967295
主要是selinux惹的祸,在不能从新启动机器的情况下,使用
#setenforce 0
如果能从新启动机器,直接禁止selinux即可。
阅读(1220) | 评论(0) | 转发(0) |