I'm just trying to set up a simple file server on my OpenIndiana box, but no matter what tutorial or smb.conf setting I seem to try I get the same problem.
First, my latest smb.conf:
Code:
[global]
netbios name = CASPER
workgroup = LAN
server string = File Server
log file = /var/samba/log/smbd.log
max log size = 100
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
security = share
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %n\n *ReType*new*UNIX*password* %n\n *passwd:*all*authentication*tokens*updated*successfully*
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
[media]
comment = Media Files
path = /share/media
public = yes
read only = no
[sam]
comment = Sams Files
path = /share/userfiles/sam
valid users = sam
public = no
writable = yes
printable = no
I also made sure to add both the unix user and smb user to the server. I have the same user name "sam" on my windows desktop, and ubuntu laptop, and I used the same password. Ive tested the accounts and they seem to work fine. I can login to the unix account and samba shows that it has a user named sam
The problem:
The server and shares show up just fine, and the media share is readable (not writable but that most likely just a permission thing and not the issue at hand). The problem is with the private share "sam", heres what happens:
Local Test:
[QUOTE]sam@casper:~$ /usr/bin/smbclient //192.168.0.1/sam
Enter sam's password:
Connection to 192.168.0.1 failed (Error NT_STATUS_CONNECTION_REFUSED)[/CODE]
From my Ubuntu laptop:
Quote:
sam@osaka:~$ smbclient //192.168.1.13/sam
Enter sam's password:
session setup failed: NT_STATUS_LOGON-FAILURE
|
And from my Windows Vista desktop I just get a login unsuccessful message.
My /var/samba/log/smbd.log is filled with these:
Code:
[2011/05/07 13:46:32.075667, 1] smbd/service.c:677(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2011/05/07 13:46:32.079670, 1] smbd/service.c:677(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
[2011/05/07 13:46:32.086242, 1] smbd/service.c:677(make_connection_snum)
create_connection_server_info failed: NT_STATUS_WRONG_PASSWORD
and yes, I triple checked all the passwords.
From my tests it seems that samba refuses to use any sort of user other then the guest account.
I tried it with "security = user" but run into the same issue, just when I connect to the server instead of the share, so it efectivlly blocks me from the media share as well.
Im probably missing something simple thats preventing the authentication, anyone care to point it out?
Thank you