bobafetthotmail / folder2ram

mount those folders to ram without losing access to their counterpart on disk!
GNU General Public License v3.0
110 stars 21 forks source link

World-writeble permissions #6

Closed jorlandobr closed 7 years ago

jorlandobr commented 7 years ago

Looking the logs I found that warning;

Oct 12 22:45:43 ubuntu systemd[1]: Configuration file /lib/systemd/system/folder2ram_startup.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.

Oct 12 22:45:43 ubuntu systemd[1]: Configuration file /lib/systemd/system/folder2ram_shutdown.service is marked world-writable. Please remove world writability permission bits. Proceeding anyway.

bobafetthotmail commented 7 years ago

Thanks for feedback!

Sounds easy enough to fix. I'll do that this weekend.

Will also check write permission on everything else (configs and script itself), as I didn't set write permissions anywhere, and that's admittedly bad.

bobafetthotmail commented 7 years ago

just pushed an update that should fix this (and remove some debug logspam), I've tested on my system and it seems ok.

If you confirm it's ok I can close this issue.

jorlandobr commented 7 years ago

I am using your program as part of the OMV's plugin flashmemory. I just need to update the binary executable?

bobafetthotmail commented 7 years ago

yes, update only the /sbin/folder2ram file, then from terminal write (without sudo if you are already logged as root)

sudo chmod +x /sbin/folder2ram

to make sure it is marked as executable (so it can be run)

And then to re-generate systemd service files write on terminal

sudo folder2ram -enablesystemd

Systemd might complain saying that the service is already enabled, you can ignore that.

OMV should eventually package and ship the newer version of this in a package update.

jorlandobr commented 7 years ago

Just checked and everything is ok now!

bobafetthotmail commented 7 years ago

good, thanks. Closing.