-   Linux - Software (
-   -   Setting developer verser operator permissions (

Ronayn 06-14-2012 10:24 AM

Setting developer verser operator permissions
As a developer, Ive created software that falls under the following directory tree:

|--- Apps
| |--- Bin
| |--- Src
|--- Images
|--- Scripts

I want to set the permissions of Launcher and its subdirectories such that only I, or someone in my group, can manipulate them. (I know how to do this.)

As an operator, I need to be able to execute, and to copy executables from the Bin subdirectory to a local directory for execution. How do I accomplish this while still keeping Launcher and its subdirectories locked down?

I am trying to think the problem out, and basically what I want is for the operator to be able to run a script that he cannot read/modify. This script has the permission necessary to execute, perform the copies (, and set file permission so that operator can use those files). Is this possible?

FYI: Currently this software is setup so that operator is the owner, but Id really like to separate the developer from the operator (as an operator should never be tinkering with the source code or scripts).

chrism01 06-14-2012 09:03 PM

1. if you really mean a script (eg bash, Perl etc) then it must be readable to be executed; ie must have at least r-x somewhere.
You would have to compile a binary (eg using C) to avoid the r perm and have it run only with x perms.

a) you could go with rwxrwxr-x owned by you:you, but that of course means anyone can read/run.

b) You could go with rwxr-x--- owned by you:somegrp & add operator to somegroup, but only you would be able to edit it.

c) Lastly, you could use ACLs eg

All times are GMT -5. The time now is 06:25 AM.