Tiny Core Extensions > TCE Q&A Forum
[SOLVED] Any TCL Samba Epxerts here? I have a unique problem.
bkm:
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
Rich:
Hi bkm
If you create your subfolder under /tmp it will be in RAM. You can do this in bootlocal.sh as well as setting the folders
owner and permissions. If memory serves, permissions and owner of the actual files are settings in the SAMBA config file.
bkm:
How brilliantly simple!! I was of course over thinking the whole mess. I will give this a try and see if I can make it work as I hoped. Will report back later.
Thanks for the moment of clarity :-[
BKM
Rich:
Hi bkm
--- Quote from: bkm on April 04, 2017, 07:05:22 AM ---How brilliantly simple!!
--- End quote ---
Brilliant is not a term often used when referring to me, though simple is. ::)
coreplayer2:
Navigation
[0] Message Index
[#] Next page
Go to full version