Chinaunix首页 | 论坛 | 博客
  • 博客访问: 150675
  • 博文数量: 52
  • 博客积分: 1410
  • 博客等级: 上尉
  • 技术积分: 490
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-05 12:05
文章分类

全部博文(52)

文章存档

2013年(1)

2010年(3)

2009年(6)

2008年(25)

2007年(17)

我的朋友

分类: LINUX

2009-02-26 00:11:48

Today, I can't share my file btw VMware and Windows via Samba. I reviewed the smb.conf didn't find any wrong. but it doesn't work.

first try telnet port 139 failed. disable the firewall by 'service firewall stop'
it still can't work and even the directory has 777 mode but samba log still shows:

  '/root/samba_share' does not exist or permission denied when connecting to [public] Error was Permission denied


I reflect that SELINUX may do something, disable it just work fine.



Disable selinux

 

[root@Jie ~]#  vi /etc/sysconfig/selinux

 

# This file controls the state of SELinux on the system.

# SELINUX= can take one of these three values:

#       enforcing - SELinux security policy is enforced.

#       permissive - SELinux prints warnings instead of enforcing.

#       disabled - No SELinux policy is loaded.

SELINUX=disabled

# SELINUXTYPE= can take one of these two values:

#       targeted - Targeted processes are protected,

#       mls - Multi Level Security protection.

SELINUXTYPE=targeted

 

[root@Jie ~]# setenforce 0


阅读(915) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~