samba shared directory cannot be accessed solution summary (2013-11-08 16:02:58) reprint ▼
Category: LINUX
1) Turn off the firewall: #sevice iptables stop
2) Modify /etc/samba/smb.conf, the specific configuration is online , mine is as follows:
security = share ---- This is to be used, share represents the lowest level of security, followed by user, the highest is server
[shared directory name]
path = /home/username/shared directory name
; read only = no ----- This needs to be commented out with a semicolon in front
writeable = yes
browseable = yes
public = yes
guest ok = yes
3) SELinux makes a mistake
and modify /etc/sysconfig/selinux and change enforcing to disabled; then the command line setenforce 0 ;
Or use selinux to enforce the policy as Brother Rainsome said: chcon -R -t samba_share_t /home/suyang/"Fedora Samba"
4) Modify directory permissions #chmod 777 /home/wind ; #chmod 777 /home/wind/smbShare; special Is the previous one as the upper directory permissions also need to be modified! ! ! !
5) Restart the samba service #service smb restart or /etc/rc.d/init.d/smb restart
ends. Of course, you need to be able to ping each other between linux and windows.
samba share cannot be accessed
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326944834&siteId=291194637
Ranking