红联Linux门户
Linux帮助

关于samba的问题(很奇怪啊!!!!!)

发布时间:2007-06-02 22:26:44来源:红联作者:chen3152001
我的smb.conf的部分内容是这样的
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: MIDEARTH
workgroup = birdhouse

# server string is the equivalent of the NT Description field
server string = Samba Server

# Security mode. Defines in which mode Samba will operate. Possible
# values are share, user, server, domain and ads. Most people will want
# user level security. See the Samba-HOWTO-Collection for details.
security = share
netbios name = linux
...............................................
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes

[public]
comment = Temporary file space
path = /home/sambatest
read only = no
public = yes
大家可以看到,我的samba服务登录的方式是share,我共享的两个目录[/tmp和/home/sambatest]下的配制是一样的,还有它们在系统里的权限分别是这样
drwxr-xr-x 18 root root 4096 06-02 22:02 tmp
drwxr-xr-x 2 root root 4096 06-02 21:52 sambatest
当我从winxp登录到linux时,可以看到tmp 和 public 两个目录,问题就在这里,我可以进tmp目录,但是进public时却进不去,系统提示说无法访问,没有权限使用网络资源!!!这是怎么回事啊
文章评论

共有 4 条评论

  1. chen3152001 于 2007-06-06 09:40:49发表:

    问题解决了,是selinux引起的!!!!

  2. chen3152001 于 2007-06-03 22:39:15发表:

    有没有谁遇到相同的问题的兄弟啊,说说啊!!!查了很久也不知道是为什么啊!!!!

  3. chen3152001 于 2007-06-03 18:16:57发表:

    是啊,不管我开放多少个目录,每次都只能进/tmp啊

  4. cuizongchao 于 2007-06-03 16:54:52发表:

    我记得每次只能进入一个目录吧.