[root@localhost 桌面]# !get
getsebool -a | grep samba
[root@localhost 桌面]#getsebool -a | grep samba
samba_create_home_dirs --> off
samba_domain_controller --> off
samba_enable_home_dirs --> off
samba_export_all_ro --> off
samba_export_all_rw --> on
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
use_samba_home_dirs --> off
virt_use_samba --> off
[root@localhost 桌面]# set
set setkeycodes setserial
setarch setleds setsid
setcap setmetamode setsysfont
seteio setpci setterm
setenforce setquota setup
setfacl setregdomain setup-nsssysinit.sh
setfattr setroubleshootd setxkbmap
setfiles setscheduler
setfont setsebool
[root@localhost 桌面]# setsebool use_samba_home_dirs 1
[root@localhost 桌面]# setsebool samba_create_home_dirs 1
[root@localhost 桌面]# setsebool samba_enable_home_dirs 1
[root@localhost 桌面]# !get
getsebool -a | grep samba
samba_create_home_dirs --> on
samba_domain_controller --> off
samba_enable_home_dirs --> on
samba_export_all_ro --> off
samba_export_all_rw --> on
samba_run_unconfined --> off
samba_share_fusefs --> off
samba_share_nfs --> off
use_samba_home_dirs --> on
virt_use_samba --> off
[root@localhost 桌面]# service smb restart
关闭 SMB 服务: [确定]
启动 SMB 服务: [确定]
chmod -R 777 /share/
625 chcon -R -t public_content_rw_t /share/
627 iptables -F
628 setsebool samba_export_all_rw on
t
631 useradd zk
632 passwd
633 smbpasswd -a zk
634 service smb restart
smb://192.168.XXX.XXX //linux文件浏览器 或 网页浏览器
\\192.168.XXX.XXX //windows
阅读(2192) | 评论(0) | 转发(1) |