[Samba] Samba authentication problem

Jeremy Allison jra at samba.org
Thu Mar 24 16:33:21 MDT 2011

On Thu, Mar 24, 2011 at 01:00:51PM -0700, Xamindar wrote:
> Hi, I have asked around in other forums but no one seems to know why
> this doesn't work.
> I have a backup server with samba on it and am trying to set it up to
> only allow write access when a user authenticates but to allow reading
> from anyone (guest). At this time I have guest disabled and a minimal
> config set up as shown below to try to narrow down the problem.
> I have added the user "xamindar" using smbpasswd on the server. I then
> tried to mount the backup share from another machine with the following
> command:
> mount -t cifs //chiroru/backup /mnt/temp -o username=xamindar
> But I keep getting the following response:
> mount error(13): Permission denied
> Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
> Can anyone tell me what I am doing wrong here? I am sure I have missed
> something. It is possible to authenticate per share with share level
> security is it not? I just can't get authentication to work no matter
> what I have tried on this machine. With guest enabled it will just use
> the guest account and that works fine.
> Thanks for any help, I am pulling my hair out here.

Share level security doesn't automatically mean no password.
Either use the password for user xamindar, or add 

"map to guest = Bad Password"

in the [global] section of your smb.conf. See the
smb.conf man page for details.


More information about the samba mailing list