I have Slackware64 14.1 and it has been running samba 4.x for over 6 months without problem. I just updated the OS and now have Samba 4.1.23 running (not sure what the previous version was -- it's gone). Now, on samba mapped folders to Windows, users cannot write to directories if they are not the owner, even if the folder has group rw and the samba account is the same group. For example:
Code:
$ ls -l /srv/tomcat/webapps/ohprs/downloads/minutes
drwxrwsr-x 2 mfoley ohprs 4096 2016-02-22 09:54 Retirement\ Board/
The folder is owned by mfoley, but is group writable to members of the ohprs group.
Members of ohprs are:
ohprs:x:301:mfoley,tomcat,daemon,apache
and also:
ohprso:x:1001:301:OHPRS Web FTP User:/srv/tomcat/webapps/ohprs/downloads:/bin/bash
ohprs:x:1002:301:HPRS Batch:/home/ohprs:/bin/bash
guest:x:1001:301:Samba guest account:/dev/null:/bin/false
Notice that guest and ohprso are the same UID.
Relevant smb.conf is:
Code:
[global]
netbios name = WEBSERVER
workgroup = WORKGROUP
server string = HPRS webserver Samba Server
security = user
map to guest = Bad User
hosts allow = 192.168.0. 127.
guest account = guest
passdb backend = tdbsam
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = no
[website]
path = /srv/tomcat/webapps/ohprs
public = yes
guest ok = yes
guest only = yes
writeable = yes
browseable= yes
printable = no
create mask = 0660
directory mask = 0771
So, why could group members of ohprs (301) write to this folder before, but not now? How can I fix thix?