Empty empty empty empty
Maybe try setting the ownership of the files with chown:
sudo chown -R apache:apache /var/www/html
https://linux.die.net/man/1/chown
The -R is the recursive flag telling chown to change the file permissions for every file in the directory in /var/www/html and any folders it may contain.
I think you will have to edit the samba config to force any new file to be attributed to a specific user and to force a permission scheme so that your samba user will be able to edit the files. I can share my samba config later in the day.
Edit: So here is an example.
[Apache Python Scripts]
path = /var/www/html
browseable = yes
writable = yes
guest ok = yes
read only = no
create mask = 0770
directory mask = 0770
force user = apache
force group = apache
Alternatively you can change the masks, for example 0777 for debugging, then begin retracting certain permissions, like making it 0770 for instance, and see if it still works. Also, if you have an smb user you log in with, which is tied to a user on the system, you can have than user join the group apache (and so 0770 should work), or alternatively, make the apache user join the smb users group. I don't know which way is better.
Edit: for clarity, this config will let anyone (guest) open the smb share. Anything that gets written to the share is owned by apache and belongs to the group apache. It has the permissions 770, which means the owner and the owners group can read/write/execute the files, and 0 at the end means no-one else can do anything. 777, with a 7 in the end means anyone in the whole wide world can do anything to the files.
try chmod -R g+w /var/www/html
or which ever folder is in play.
smb can be real stubborn at times, g+w should allow for the group to use/write the files as well.
problem is if you write a new file to a folder which is shared, it belongs to you, and the group, but since it is your file, the other members of the group cannot touch the file.
normally when i do a smb share i use chown -R me:group, chmod -R 775 /Folder/in/question, chmod -R g+w /Folder/in/question.
I think they can if their primary group is the same one (and the permission scheme allows for group editing, for instance 7), i.e if you make it the first group appearing when you check group membership with $ groups <username>
. If it is simply a matter of an smb user who's only lot in life is to plot text files into a folder, it will not have any other ramifications. But your method might be easier and work better in the end, for instance if he/she does not log in to the share with a system user.