LinuxSir.cn,穿越时空的Linuxsir!

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

為甚麼我的samba安裝好在windows下不能訪問

[复制链接]
发表于 2004-8-11 17:03:41 | 显示全部楼层 |阅读模式
我安裝好samba-*.rpm 軟件包,service smb restart 後,在windows下能看到我的工作組和電腦名稱,為甚麼出現不能訪問,一訪問就提示出錯了
我只在smb.conf中增加了 一條
[resource]
comment = local
path = /var/samba/resource
public= yes
writable = yes
還請各位高手多多指教!:thank
发表于 2004-8-11 18:35:56 | 显示全部楼层
你 cat /etc/passwd | mksmbpasswd > /etc/samba/smbpasswd

smbpasswd username

vi smbuser (add linuxusername = windowsusername)

这些步骤都做过了吗
 楼主| 发表于 2004-8-13 08:09:47 | 显示全部楼层
這一步我到沒有做過啊
我是用useradd -s /bin/nologin x 和 smbpasswd -a x 這種方法?硖砑佑脩舻陌
在 /etc/samba/smbpasswd 中可以看到我添加的用戶啊
 楼主| 发表于 2004-8-13 14:13:43 | 显示全部楼层
你 cat /etc/passwd | mksmbpasswd > /etc/samba/smbpasswd

smbpasswd username

vi smbuser (add linuxusername = windowsusername)

这些步骤都做过了吗

我按照你說的 cat /etc/passwd > /etc/samba/smbpasswd
smbpasswd username 後出現了下列錯誤
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
getsmbfilepwent: malformed password entry (uid not number)
Failed to find entry for user xxx.
Failed to modify password entry for user xxx
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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