LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 930|回复: 10

samba与XP共享的问题

[复制链接]
发表于 2004-11-25 23:01:06 | 显示全部楼层 |阅读模式
我在XP的网上邻居里可以看到samba服务器,但是无法打开
samba服务器设置的是user级别
发表于 2004-11-25 23:07:12 | 显示全部楼层
Setup your smbpasswd or make change to your registry to send plain text password.
 楼主| 发表于 2004-11-26 10:33:30 | 显示全部楼层
我已经启用了加密密码一项
encrypt passwords = yes
 楼主| 发表于 2004-11-26 10:43:22 | 显示全部楼层

下面是我的smb.conf配置

[global]
workgroup = bondale
server string = samba server
printcap name = /etc/printcap
load printers = yes
security = user
printing = cups
log file = /var/log/samba/%m.log
max log size = 0
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*password* %n\n *Retype*new*password*     %n\n *passwd:*all*authentication*tokens*updated*successfully*

pam password change = yes
obey pam restrictions = yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192

username map = /etc/samba/smbusers
dns proxy = no

[homes]
        comment = Home Directories
        browseable = no
        writeable = yes
        valid users = %S
        create mode = 0664
        directory mode = 0775

[printers]
        comment = All Printers
        path = /var/spool/samba
        browseable = no
        printable = yes

[tmp]
    comment = Temporary file space
    path = /tmp
    read only = no
    public = yes

[public]
    comment = Public Stuff
    path = /home/samba
    public = yes
    writable = yes
    printable = no
    write list = @oyke
#这是oyke用户的共享主目录
[oyke]
        comment = oyke's home directory
        path = /home/oyke
        public = yes
        writeable = yes
        valid users = oyke
#这是bon用户的共享主目录
[bon]
        comment = bon's home directory
        path = /home/bon
        writeable = yes
        valid users = bon
 楼主| 发表于 2004-11-26 11:43:40 | 显示全部楼层

为什么我用smbclient -L IP查看windows机器的共享文件会这样

[root@RH9Ser root]# smbclient -L 192.168.1.10
added interface ip=192.168.1.250 bcast=192.168.1.255 nmask=255.255.255.0
session request to 192.168.1.10 failed (Called name not present)
session request to 192 failed (Called name not present)
Password:
Anonymous login successful
Domain=[WORKGROUP] OS=[Windows 5.0] Server=[Windows 2000 LAN Manager]

        Sharename      Type      Comment
        ---------      ----      -------
Error returning browse list: NT_STATUS_ACCESS_DENIED

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
发表于 2004-11-26 19:19:30 | 显示全部楼层
It seems you only tell samba to use encrypted passwords, but you haven't defined any passwords.
 楼主| 发表于 2004-11-27 15:26:44 | 显示全部楼层
smb passwd file = /etc/samba/smbpasswd
这个就是定义帐号密码的文件啊,而且我已经往里面添加了smb帐号密码,(smbadduser -a),要不然。。
发表于 2004-11-27 15:45:20 | 显示全部楼层
As you are using security = user, users in your samba server must also be a valid user in your XP.  Also, your should restart samba after you made changes.  Pay attention, username and password are case sensitive.
发表于 2004-11-27 19:46:04 | 显示全部楼层
学一招。本来我也有这个问题
发表于 2005-5-7 16:33:59 | 显示全部楼层
看不懂怎么解决,我也是这个问题
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表