Samba, Failed to find entry for user on centos


When trying to set up a samba user, you set the password using

 
smbpasswd pratap

You are prompted for the new password but then it gives the error

 
Failed to find entry for user

This has happened because it is the first time you have set the password. You need to add the user first, so the command should be

 
smbpasswd -a pratap

One thought on “Samba, Failed to find entry for user on centos

  1. First create the user in the normal way you would create a regular user, i.e;
    # useradd user1
    Then add the user as a samba user now
    # smbpasswd -a user1

    Like

Leave a comment