日韩无码专区无码一级三级片|91人人爱网站中日韩无码电影|厨房大战丰满熟妇|AV高清无码在线免费观看|另类AV日韩少妇熟女|中文日本大黄一级黄色片|色情在线视频免费|亚洲成人特黄a片|黄片wwwav色图欧美|欧亚乱色一区二区三区

RELATEED CONSULTING
相關(guān)咨詢
選擇下列產(chǎn)品馬上在線溝通
服務(wù)時(shí)間:8:30-17:00
你可能遇到了下面的問題
關(guān)閉右側(cè)工具欄

新聞中心

這里有您想知道的互聯(lián)網(wǎng)營(yíng)銷解決方案
CentOS中Samba配置后始終連不上解決

按照網(wǎng)上的辦法改了/etc/samba/smb.conf配置文件,結(jié)果在Win7里面就是連不上,后來發(fā)現(xiàn)是防火墻的問題。

有兩個(gè)命令必須要執(zhí)行:

1、將SELinux設(shè)置成disabled或者permissive

setenforce 0

2、關(guān)閉防火墻服務(wù)

service iptables stop

若SElinux啟用中,在Windows檔案總管無法連到 Samba 所分享出來的目錄時(shí),

在Linux 中,可執(zhí)行下列指令:

setsebool -P samba_enable_home_dirs on

參考文件: /etc/samba/smb.conf

#---------------
 # SELINUX NOTES:
 # 分享群組
# If you want to use the useradd/groupadd family of binaries please run:
 # setsebool -P samba_domain_controller on
 #

# 分享home目錄
# If you want to share home directories via samba please run:
 # setsebool -P samba_enable_home_dirs on
 #
 # If you create a new directory you want to share you should mark it as
 # "samba-share_t" so that selinux will let you write into it.
 # Make sure not to do that on system directories as they may already have
 # been marked with othe SELinux labels.
 #
 # Use ls -ldZ /path to see which context a directory has
 #
 # Set labels only on directories you created!
 # To set a label use the following: chcon -t samba_share_t /path
 #
# If you need to share a system created directory you can use one of the
 # following (read-only/read-write):
 # setsebool -P samba_export_all_ro on
 # or
 # setsebool -P samba_export_all_rw on
 #
 # If you want to run scripts (preexec/root prexec/print command/...) please
 # put them into the /var/lib/samba/scripts directory so that smbd will be
 # allowed to run them.
 # Make sure you COPY them and not MOVE them so that the right SELinux context
 # is applied, to check all is ok use restorecon -R -v /var/lib/samba/scripts
 #
 #--------------
 #

iptables開機(jī)自動(dòng)啟動(dòng):

開啟: chkconfig iptables on 

關(guān)閉: chkconfig iptables off

iptables關(guān)閉服務(wù):

開啟: service iptables start 

關(guān)閉: service iptables stop

chkconfig --level 35 nmb on         

chkconfig --level 35 smb on       


網(wǎng)頁題目:CentOS中Samba配置后始終連不上解決
本文網(wǎng)址:http://m.5511xx.com/article/dhpogds.html