I have a folder shared by Samba and mounted on Windows. If I lock files in Linux I don't want Windows users to modify those. And If windows user will create a file/folder, in Linux I should be able to lock it. How do I do this.
migrated from stackoverflow.com Jun 20 '13 at 9:06
This question came from our site for professional and enthusiast programmers.
The file system needs to allow writing as well as Samba for a remote user to make any modifications. Since both sets of permissions are independent, involving network shares does not complicate matters at all. Simply take away the write access for the appropriate files and users with the chmod command and Samba users will see an error message when attempting to write to these files.