免费注册 查看新帖 |

Chinaunix

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

[samba] 求救:samba服务器能看到,但是访问不了 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-08-12 11:15 |只看该作者 |倒序浏览
我做了一个samba服务器,想要每个windows用户只能访问操作自己的文件夹,别人看不到,只能通过自己的账号和密码来访问。按照书上的说法配置完成后在网上邻居能看到samba服务器,但是双击后提示没有权限,我在/etc/samba/smbpasswd中建了几个帐户,帐户中的用户名和密码和linux系统的用户名和密码一致。下面是/etc/samba/smb.conf的配置文件:
#======================= Global Settings =====================================
[global]
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = workgroup
# server string is the equivalent of the NT Description field
   server string = RLSAMBA
   hosts allow = 192.168.0. 127.
# if you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   printcap name = /etc/printcap
   load printers = yes
# It should not be necessary to spell out the print system type unless
# yours is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = cups
# This option tells cups that the data has already been rasterized
cups options = raw
log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/smbd.log
# Put a capping on the size of the log files (in Kb).
   max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user
# Use password server option only with security = server
;   password server = <NT-Server-Name>
# Password Level allows matching of _n_ characters of the password for
# all combinations of upper and lower case.
;  password level = 8
;  username level = 8
  encrypt passwords = yes
  smb passwd file = /etc/samba/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
name resolve order = lmhost bcast host
   dns proxy = no
#============================ Share Definitions ==============================
   idmap uid = 16777216-33554431
   idmap gid = 16777216-33554431
   template shell = /bin/false
   winbind use default domain = no
[homes]
   comment = Home Directories
   browseable = no
   #readonly = no
   writable=yes
   valid users = %S
   create mode = 0664
   directory mode = 0775
[printers]
   comment = All Printers
   path = /var/spool/samba
   browseable = no
# Set public = yes to allow user 'guest account' to print
   guest ok = no
   writable = no
   printable = yes
# This one is useful for people to share files
;[tmp]
;   comment = Temporary file space
;   path = /tmp
;   read only = no
;   public = yes
# A publicly accessible directory, but read only, except for people in
# the "staff" group
[public]
   comment = Public Stuff
   path = /home/public
   public = yes
   writable = yes
   valid users = @users
#   read only = yes
#   write list = @staff

我的问题出在哪呢?先谢谢大家了

论坛徽章:
0
2 [报告]
发表于 2008-08-12 11:20 |只看该作者
通过testparm命令显示
[root@RLZY-server ~]# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[public]"
Loaded services file OK.
Server role: ROLE_STANDALONE
Press enter to see a dump of your service definitions

# Global parameters
[global]
        server string = RLSAMBA
        log file = /var/log/samba/%m.log
        max log size = 50
        name resolve order = lmhost bcast host
        socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
        printcap name = /etc/printcap
        dns proxy = No
        idmap uid = 16777216-33554431
        idmap gid = 16777216-33554431
        hosts allow = 192.168.0., 127.
        cups options = raw

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

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

[public]
        comment = Public Stuff
        path = /home/public
        valid users = @users
        read only = No
        guest ok = Yes

论坛徽章:
0
3 [报告]
发表于 2008-08-13 12:17 |只看该作者
问题解决了,原来是IPTABLES的问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP