I know how to set up samba to do the share that I want and how to make it persistent. But that is not quite what I need.
I need Samba to start on boot every time with my share settings, but the folder that I want to share is one that I do not want to be persistent. I want to open a share that I can drop files into from a MS Windows environment, but if I lose power I want the files to disappear, and when the box reboots, I want an empty share folder again. This is where it gets tricky, the folder (that disappears on reboot) must be owned by a "nobody" user, all files going into the folder must be 777 permissions, and subfolder creation must be 777 permission. This way any user or anonymous users can drop files into the share from the local network, even though they will all be lost on reboot.
All of this is intentional in order to reduce the chances the box could become infected with malware, and to reduce the number of write operations to the USB drive. I will be dropping 2 fresh files into the share folder every 10 minutes during the 8 hour work day. At the end of the work day I will copy the most recent files from the share to a backed up folder that will be written to the USB drive. Seven hours later (after the close of business) I will have the TCL box reboot to start fresh for the next business day and during boot I want to copy the last backed up version of the files to the share folder again.
All of the instructions I have found so far tell me how to make the share with all files persistent along with the settings. I just want the settings to be persistent and share folder to be created in memory on each reboot so I can populate it throughout the day. However it is the permissions that I need for the share folder that have really lost me. Not sure how to do this unique configuration.
Can anyone point me to a way to accomplish this mixed bag of persistent and permission settings?
Thanks,
BKM