Created
March 3, 2015 12:57
-
-
Save jossef/b5aae953cc356638e654 to your computer and use it in GitHub Desktop.
Linux Share Permissions Fixer
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TL;DR
this is a workaround for Linux machines acts as File Servers over LAN (mounted via smb or nfs) to remove new files' permissions (like
Everyonewith full control in windows)Why?
when you setup a linux machine as both
nfsandsambato serve files over the network for windows and linux clients, you will probably deal with what's called permission hell. there are some good and secured solution involving your clients to configure their users to be in certain groups.But, let's simplify the client experience with 0 configuration requirements
the idea is to set in the server a
Watch- when a client creates a new file a trigger will callchmod <mask> <watch-path>i find it convenient workaround for a small network share
save
share-fixer-daemoninsave
share-fixerinrun