免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1728 | 回复: 4
打印 上一主题 下一主题

请教SAMBA服务器访问与读写问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-26 15:52 |只看该作者 |倒序浏览
我想共享/home/public的内容,并使users群的用户有读取和写入的权限;我以经建立了这个目录,并使用chmod 770 /home/public和chgrp users /home/public 改变文件权限,用passwd与smbpasswd建立ss用户,用passwd和smbpasswd设的用户ss的密码是相同的.但现在我用windows去访问samba服务器时可以登陆进去,但当进入public文件时出现:

请各位帮忙看看,我只要一个用户组有读写的权限就OK了!先谢了!
SAMBA服务器的配置文件smb.conf内容为:
[global]
        workgroup = MYGROUP
        server string = Samba Server
        log file = /var/log/samba/%m.log
        max log size = 50
        dns proxy = No
        security=user

[homes]
        comment = Home Directories
        valid users = %S
        read only = No
        create mask = 0664
        directory mask = 0775
        browseable = No

[printers]
        comment = All Printers
        path = /usr/spool/samba
        printable = Yes
        browseable = No

[public]
   comment = the user groups work directory
   path = /home/public
   public = yes
   writable = yes
   valid users = @users

论坛徽章:
0
2 [报告]
发表于 2008-06-26 17:10 |只看该作者
补充,系统是用的fodora6.谢谢

论坛徽章:
0
3 [报告]
发表于 2008-06-26 17:23 |只看该作者
是否是selinux影响?如果你要将权限改为777呢?

论坛徽章:
0
4 [报告]
发表于 2008-06-26 17:27 |只看该作者
首先看主机是不是能访问
在看目录的权限

论坛徽章:
0
5 [报告]
发表于 2008-06-27 09:10 |只看该作者
3楼 发表于 2008-6-26 17:23   
是否是selinux影响?如果你要将权限改为777呢?

权限改为777后还是一样!
selinux配置文件是:
[root@crischeung ~]# cat /etc/selinux/config
# 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 - SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
#       targeted - Only targeted network daemons are protected.
#       strict - Full SELinux protection.
SELINUXTYPE=targeted


4楼 发表于 2008-6-26 17:27   
首先看主机是不是能访问
在看目录的权限

主机是可以通过用户名和密码访问的,但进入不能进入public文件;此文件在主机的权限是:
drwxrwx--- 2 root       users 4096 Jun 27 16:50 public
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP