Samba won't authenticate users
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] 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:
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) 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 |
Ive tried all I can think of, is there any other test I could run to gather more information on this?
|
Does anyone have any idea what other files or programs are used in the process?
That way I can go though them one by one and check them out. |
Can someone at least confirm that the smb.conf looks good (Im not missing anything)?
|
Ok, this is weird. This is only one of three forums I posted this to and I have yet to get a reply from anyone. Does no one use Samba? should I be looking at something else?
I know this is possible since thats the whole point of samba authentication, and Ive followed the examples to the letter. What the hell is going on with this thing? |
Did you run smbpasswd?
|
Quote:
Code:
sam@casper:~$ /usr/bin/smbpasswd Code:
# smbpasswd -a sam |
Probably a silly question but did you give sam the same password with smbpasswd that sam has on Windows?
Probably doesn't matter but are the Windows systems in workgroup LAN? To minimise/canonicalise the problem information, what is the output of testparm smb.conf? NFS would be a better choice than Samba for your Ubuntu system. |
Yes and yes, same password, and the workgroup is LAN
However... Code:
# testparm smb.conf |
Sorry for not being more explicit. Assuming smb.conf is in /etc/samba, you need either
Code:
cd /etc/samba Code:
testparm /etc/samba/smb.conf |
System Date
I realize this is an old thread, but it showed up high in search results and seems to lack a conclusion.
I had similar problems, but setting the system date on the serving CentOS box to today's date (from 2004!) may have been the solution for me, and the reason why clients weren't being happily connected. |
I know this is an old thread but I just came accross it while trying to solve the same problem. So for the benefit of others that might happen accross it.
The answer: Problem is caused by SELinux, it can be turned off temporarily with 'setenforce 0', if that works turn it back on with 'setenforce 1' and correct the problem properly by setting the context of the Samba share directory to samba_share_t. Hope that might help. |
I know this is an old thread, but it continues to rank highly in search results for this issue.
I had the same problem - when Samba security was set to 'share' on my Linux box, authentication failed when attempting to access a password protected share from Windows 7, even though username and password were both entered correctly. A partial clue came from a Microsoft support article named 'Cannot Connect to Password-Protected Share on Windows 95/98 Computer', since Win95/98 also use 'share level' security. Basically, to access the password-protected Samba share in Windows 7, when the 'Enter Network Password' box pops up, instead of just entering the Linux user account name you need to enter name of Linux box\Linux user account name. So if the Linux box is named 'dragon', the user account is named 'bob' and the password is 'penguin' you would enter: Username: dragon\bob Password: penguin This worked for me - hope it helps others too. |
have you checked the actual directory permissions on samba server...?
does user sam have read/write access to directories ? what are directory permissions please elaborate .. |
probably you must have created directories by becoming root so the directories are owned by user root!
modify the directory permissions so that samba users can read/write to them.. |
All times are GMT -5. The time now is 06:34 PM. |