-   Linux - Server (
-   -   A Unique problem. Has to do with permissions (

jadacyrus 07-07-2009 09:38 AM

A Unique problem. Has to do with permissions
Ok, Its hard for me to explain this problem in words so I have a bit of a visual aid:

Now this represents the structure of the file system im working with. Each box is a folder. The folder that I want to specifically set permissions for is the orange colored folder. Now note that in this system we are constantly creating new red folder that contain the same purple folders. So I need a way for everytime that a new red folder is created with its sub folders that that specific "orange" folder gets the specific permissions I want. I'm not quite sure how to do this but note that it is used as a samba share and ive read up on simple samba permissions but they dont seem to cover the scope of what I really need. Im not a linux guru but I can understand advanced concepts so if anyone can help me out with my problem id really appreciate it. Thankyou

nowonmai 07-07-2009 10:40 AM

How are the directories being created?

jadacyrus 07-07-2009 10:47 AM

One of my windows based software programs thats responsible for "opening case" creates the directories. And through samba i have a create mask and a directory mask to take care of the initial permissions for the root directory but not sure how to set permissions explicitly for those specific folders. I really just want only a handful of users to access that "one" folder.

vap16oct1984 07-07-2009 10:54 AM

I guess use the setuid and setgid for this king of permission. It help to resolve your issue.

setuid and setgid (short for set user ID upon execution and set group ID upon execution, respectively) are Unix access rights flags that allow users to run an executable with the permissions of the executable's owner or group.


PTrenholme 07-07-2009 11:04 AM

  • In which file system is the Windows program creating your new folders?
  • Does that file system support the kind of permissions you want to establish?
    • If so, why is the creation program not setting the permissions when the folders are created?
    • If not, then how can Samba set (or enforce) any access restriction that are not supported by the file system being accessed?

jadacyrus 07-07-2009 11:41 AM

Its a NTFS File system. The program is written in VB.NET. I havent looked into if theres a way to set permissions programatically but perhaps that is a good idea. I will see if I can do that.

All times are GMT -5. The time now is 04:48 PM.