If I create a directory or file from a Windows PC on a Samba shared linux folder, they have the following permissions.
drwxrwxr-x. 2 phped phped 4096 Apr 15 05:28 test
-rwxrw-r--. 1 phped phped 0 Apr 15 05:24 test.php
I am okay with the owner/group as well as the directory permissions, however, I wish the file to be -rwxrwxr-x.
How can I do this? My /etc/samba/smb.conf file is:
server string = Samba Server Version %v
# interfaces = lo wlan0 192.168.0.1/24
hosts allow = 127. 192.168.0.
log file = /var/log/samba/log.%m
max log size = 50
security = user
passdb backend = tdbsam
comment = Apache WWW Directory
path = /var/www
public = no
# valid users = phped
read only = no
writable = yes
browseable = yes
create mask = 0775
create mode = 0775
directory mode = 0775
share modes = yes