[求助]為什麼在虛擬機中可以用戶登錄而WIN中卻報密碼錯誤?
在虛擬機上的smb.conf中設置root的目錄可讀寫后,用smbpasswd -a root增加了root用戶,
smbclient //server/rootservice rootpassword -U root后可以登錄,可是在主機的win下其它的public共享可以訪問,而訪問rootservice時在用戶名和密碼中分別輸入root:rootpassword后卻報錯:錯誤的密碼或未知的用戶名。請問這是什麼原因?謝謝幫助。如下是所配置的smb.conf
encrypt passwords=yes
smb passwd file=/etc/samba/smbpasswd
log file = /usr/local/samba/log.%m
; You will need a world readable lock directory and "share modes=yes"
; if you want to support the file sharing modes for multiple users
; of the same files
; lock directory = /usr/local/samba/var/locks
share modes = yes
workgroup=WORKGROUP
netbios name=myold
server string=my samba server %v at %h
guest account=nobody
security=share
comment = Home Directories
browseable = yes
read only = yes
create mode = 0750
comment = Public Stuff
path = /usr/help
public = yes
writeable = no
printable = no
comment = my root dir
path = /root/workspace
valid user = root
writeable = yes
printable = no
《解決方案》
注意系統是許可權
《解決方案》
謝謝lovegqin的幫助,很抱歉不明白你的意思。
後來重新啟動虛擬機器后能夠正常使用了。
另外有兩個不明白的問題:在使用
#smbclient -L serverIP后看到的
server comment
------- --------
SERVERNAME XXXX
Workgroup Master
--------- -------
WORKGROUP SERVERNAME
中的SERVERNAME是什麼變數決定的,為什麼和hostname得到的結果會不一致呢?
第2問題則是在兩台虛擬機上都可以用
#smbclient -L serverIP看到對方共享的服務,可是用
#smbclient //server/public就找不到主機,這是什麼原因呢?
非常感謝熱心幫助!
[ 本帖最後由 johnsonyoung 於 2007-4-17 14:35 編輯 ]
《解決方案》
查看一下你的netbios name= 的設置
《解決方案》
在我的smb.conf文檔中已經設置netbios name選項為新的hostname了,可是結果還是沒有改變,真是讓我不得其解,要不可能是我的這個版本有什麼問題?
[ 本帖最後由 johnsonyoung 於 2007-4-17 15:21 編輯 ]