【求助】RHEL5下的samba伺服器非home下不能訪問!【已解決】
系統平台:RHEL5.2
配置文件:
workgroup = WORKGROUP
server string = Samba
netbios name = rhel5
security = share
passdb backend = tdbsam
load printers = yes
cups options = raw
comment = Home Directories
browseable = no
writable = yes
; valid users = %S
; valid users = MYDOMAIN\%S
comment = mov1
path = /home/marsaber
public = yes
browseable = yes
writable = no
write list = @marsaber
comment = mov2
path = /mov
public = yes
browseable = yes
writable = yes
write list = @marsaber
SELinux:
# sestatus -b |grep "samba"
samba_domain_controller off
samba_enable_home_dirs on
samba_export_all_ro off
samba_export_all_rw off
samba_share_nfs off
use_samba_home_dirs off
/home/marsaber(marsaber用戶、marsaber組)和/mov(root用戶、root組)的許可權都是777。
mov1是可以匿名訪問的,marsaber可讀、可寫、可刪除;
mov2則不可以,為什麼?請指點指點。
非常感謝!
[ 本帖最後由 marsaber 於 2008-11-21 11:11 編輯 ]
《解決方案》
windows訪問mov2,提示無權訪問。
《解決方案》
關掉SELinux
《解決方案》
原帖由 lovegqin 於 2008-11-20 20:16 發表 http://bbs3.chinaunix.net/images/common/back.gif
關掉SELinux
為什麼非要關閉SELinux?
《解決方案》
:mrgreen: :mrgreen: :mrgreen:
搞定!
不用關SELinux也可以了!
chcon -t samba_share_t /path
[ 本帖最後由 marsaber 於 2008-11-21 11:28 編輯 ]