Results 1 to 3 of 3

Thread: Samba does not accept user/password combination

  1. #1
    Join Date
    Sep 2013

    Question Samba does not accept user/password combination

    Hi there,

    I am a total newbee to the Linux world, so please forgive me if I am asking dump questions.

    I installed Ubuntu server 13.04 and installed samba. The daemons are running and I changed the configuration so that it looks like this:
    Load smb config files from /etc/samba/smb.conf
    rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
    Processing section "[printers]"
    Processing section "[print$]"
    Loaded services file OK.
    Server role: ROLE_DOMAIN_PDC
            server string = %h server (Samba, Ubuntu)
            map to guest = Bad User
            obey pam restrictions = Yes
            pam password change = Yes
            passwd program = /usr/bin/passwd %u
            passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
            username map = /etc/samba/samba_users
            unix password sync = Yes
            syslog = 0
            log file = /var/log/samba/log.%m
            max log size = 1000
            logon drive = H:
            domain logons = Yes
            dns proxy = No
            usershare allow guests = Yes
            panic action = /usr/share/samba/panic-action %d
            idmap config * : backend = tdb
            comment = Home Directories
            valid users = %S
            read only = No
            comment = All Printers
            path = /var/spool/samba
            read only = Yes
            create mask = 0700
            printable = Yes
            print ok = Yes
            browseable = No
            comment = Printer Drivers
            path = /var/lib/samba/printers
            read only = Yes
    I created user "pommes" (with home directory, too) with password "bar" and added him to my samba_users file: foo=pommes (foo is my username on the windows machine).

    When I now connect to my ubuntu server, the windows authentication window is displayed and it asks me to enter the credentials for user "MYLAPTOP\foo". Unfortunately, password "bar" is not accepted.

    What am I doing wrong? Any help is greatly appreciated!

  2. #2
    Join Date
    Dec 2008
    Xubuntu 14.04 Trusty Tahr

    Re: Samba does not accept user/password combination


    Maybe this link will help?

    When you created the user pommes did you run smbpasswd ?


    When run by root, smbpasswd allows new users to be added and deleted in the smbpasswd file, as well as allows changes to the attributes of the user in this file to be made. When run by root, smbpasswd accesses the local smbpasswd file directly, thus enabling changes to be made even if smbd is not running.

  3. #3
    Join Date
    Sep 2013

    Re: Samba does not accept user/password combination

    Hi Azdour,

    thanks a lot! This was exactly the step I was missing out.

    Cheers, mate!


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts