LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Samba rights for application (https://www.linuxquestions.org/questions/linux-software-2/samba-rights-for-application-939686/)

Stary 04-13-2012 02:41 PM

Samba rights for application
 
Here is my situation:
I put two folders to a samba shares with full rights. I can see and use them from windows clients.
In the first folder \Programs I put an EXE program and some PDF files to the second folder \PDF. The program uses this PDF files and should have full rights for create / update and delete them. Since I put full rights to bozh folders, everything works fine.

Now I want to restrict the rights for the PDF folder - I don't want that user has access to those files except if he touch them from the particular application (running an exe program from \Programs folder). So if the user search or explore folders with other tools or from command line or windows directly, those files should be protected.

I wonder if there is possible to put some "application" rights on the folder and not common user rights?

Felipe 04-14-2012 04:50 PM

Hello:

For sharing files and folders using samba what i do is:
- Use ACL for files and folders. Thus, you can say how and how can access (read, write, execution) to files and foders.
- Sharing that files and folders saying that permissions are granted according to acl.

You can read this post:


http://www.linuxquestions.org/questions/linux-server-73/file-permissions-and-acls-on-ntfs-partition-927645/#post4603384


All times are GMT -5. The time now is 11:40 AM.