Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >

KB-7506: Samba4 force user parameter - Error: User name could not be found

28 September,16 at 11:10 PM

Applies to: Samba 4.2.10 and up with adbindproxy 5.3.0.

Question: Would like to use the force user parameter in smb.conf but receiving the error message, "User name could not be found". How can this be fixed? 

User-added image

If the force user is a:

1)  Local user:
The local user must not be an AD user. The local user must also be a valid user for the share. 

2) AD user: 
The AD user must be Zone Enabled
The AD users primary group must be Zone enabled. 
These setting can be checked by using:

# adquery user <ADuser> -A

excerpt from smb.conf:
    comment = test
    valid users = centrifyimage.vms/testuser 
    path = /tmp/test
    public = no
    writeable = no
    browseable = yes
    guest ok = no    
    force user = centrifyimage.vms/testuser