Debian Samba - A mixture of secure and public folders - Win 7 client

I have a Debian box where samba runs on a small home network.

smb.conf as follows:

 [global] workgroup = workgroup netbios name = loftserver security = user map to guest = bad user guest account = smbguest [share] path = /storage/share writeable = yes guest ok = yes public = yes browseable = yes [prot] path = /storage/prot read only = no browseable = yes guest ok = no create mask = 0666 directory mask = 0777 valid users = pwuser 

everything works fine for linux clients. The shared folder is public - no problem. The prot (protected) folder works as it should, users will be asked to enter the username and password pwuser.

I installed them using:

 smbpasswd -a pwuser 

then the ownership of the folder has changed with:

 chown -R pwuser:pwuser /storage/prot 

As said, everything works fine with Linux clients.

The problem occurs on the Windows 7 client.

They can switch to \\loftserver\share without a problem. A \\loftserver\prot in \\loftserver\prot gives them a password request. They enter the correct data - they still receive an authentication error (access is denied).

/var/log/samba/log.smbd gives the following error:

 [2012/02/20 23:47:33.023285, 1] smbd/service.c:678(make_connection_snum) create_connection_server_info failed: NT_STATUS_ACCESS_DENIED 

Any suggestions? I am sure this is something simple that I forgot.

+4
source share
1 answer

The problem is resolved.

I deleted the line

  valid users = pwuser 

From the configuration.

The folder remains protected by pwuser authentication and password, but works great for win7 and XP clients.

Strange that I do not understand!

+2
source

Source: https://habr.com/ru/post/1397521/


All Articles