[Samba] samba windows/Unix user name problem

mattes mkopal at mykmk.com
Tue Oct 13 21:30:02 MDT 2009

fedora 11 install with
   samba-3.4.2-0.42.fc11  (updated later)

I used 'system-config-samba' to setup shares and users.
Attempts to access the samba shares from windows xp (sp4)

After an afternoon of try and error I finally got access.
I was always used the windows name 'racer5' to login.
I finally got it to work when using the unix username 'xunil' instead.

Is that the intend? or a bug?
What is the windows user name used for?

here part of my setup

  cat /etc/samba/smbusers
  # Unix_name = SMB_name1 SMB_name2 ...
  root = administrator admin
  nobody = guest pcguest smbguest
  xunil = racer5

using unix test tools pretty much reveal the issue:

  smbclient -u racer5 //   FAILED
    session setup failed: NY_STATUS_LOGON_FAILURE

  smbclient -u xunil //    OK
  smbclient //             OK

same stands for mount

 mount -t cifs -o user=racer5 // /mnt/x
  all  mount error 12 = permission denied

 mount -t cifs -o user=xunil // /mnt/x   OK

windows xp explorer
  \\\samba  user 'racer5'    FAILS
  \\\samba  user 'xunil'     FAILS

in all cases the smb password is/was used!


More information about the samba mailing list