[Samba] user authentication issue

Jeremy Allison jra at samba.org
Fri Apr 17 15:29:56 MDT 2015

On Fri, Apr 17, 2015 at 03:15:48PM -0500, Itamar Gal wrote:
> Hey Samba list,
> Home Directory:       \\files\userid
> Profile Path:         \\files\userid \profile
> 3. I reset the user's password:
> echo -e "password\npassword\n" | passwordsudo smbpasswd -s
> Then I tried to connect to the Samba server as the user:
> smbclient //fileserver/domain -U userid
> Unfortunately I was unable to authenticate; I get the following error
> message:
> Domain=[domain] OS=[Unix] Server=[Samba 3.6.3]
> tree connect failed: NT_STATUS_ACCESS_DENIED
> 4. I checked to see if there was in fact a Unix account for the user, and
> there wasn't, so I added one, and set the UNIX password to match the
> password set with smbpasswd. Then I tried again to connect to the Samba
> server, but was still unable to connect.
> Can anyone shed any light on this? Help!

Set the log level in smbd to 10, then take a look
at the logs produced when smbclient tries to connect.

Here's how I set that up in smb.conf:

log file = /usr/local/samba/var/log.%m
max log size = 0
log level = 10

That will be the quickest way to track down the problem.


More information about the samba mailing list