samba採用security為user的時候,提示輸入用戶名密碼對話框但是,無論這麼樣都密碼報錯
samba採用security為user的時候,提示輸入用戶名密碼對話框但是,無論這麼樣都密碼報錯,是那裡設置沒有好嗎?
smb.conf配置文件如下:
1
2 workgroup = GROUP
3 server string = Server
4 security = user
6 log file = /var/log/samba/%m.log
7 max log size = 50
9 encrypt passwords = yes
10 smb passwd file = /etc/samba/smbpasswd
11
12 comment = directories
13 path = /sambafiles/
14 valid users = sxx
15 public = no
16 writable = yes
17 printable = no
18 create mask = 0765
19
20
21 comment = files
22 path = /install/
23 valid users = sxx
24 public = no
25 writable = yes
26 printable = no
27 create mask = 0765
《解決方案》
回復 #1 shensx 的帖子
上面這個設置有錯嗎?
《解決方案》
你的密碼文件是否存放於/etc/samba/smbpasswd ?
grep 'username' /etc/samba/smbpasswd
看看結果。
《解決方案》
回復 #3 lovegqin 的帖子
謝謝指點是這個問題,現在用windowsxp訪問的時候出現輸入用戶名和密碼的對話框,然後能夠正常進入目錄了,但是用linux終端去訪問的時候出現這樣的報錯Domain= OS= Server=
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[ 本帖最後由 shensx 於 2008-11-20 15:42 編輯 ]
《解決方案》
怎麼訪問的?
man 一下先
《解決方案》
SELinux問題!
chcon -t samba_share_t /path
[ 本帖最後由 marsaber 於 2008-12-3 13:45 編輯 ]
《解決方案》
:mrgreen:
《解決方案》
SELinux問題!
chcon -t samba_share_t /path