Need a script to give folder rights

Not applicable

Morning to all,

Does anyone have a basic script that I can use to give my users rights to a specific folder. Here is an example.

After I push the ESKO software the users have to have full rights to:

HD/Users/Shared/EskoArtworks

Also

HD/Applications/Automation Engine Client 10.0.2/bg.properties

Thanks
![external image link](attachments/fe32a86195f449b2bdc3832324a442a7)
Neal Smith | MAC Systems Engineer | Perrigo IT

5 REPLIES 5

tlarkin
Honored Contributor

well just a chmod -R 777 /path/to/folder will do it, but you sure you need to give them full control of these files? That means they can delete them as well.

-Tom

![external image link](attachments/8e812f900d1a47d2b346430183a0f1f9)

tomt
Valued Contributor

Can you just change the permissions in your install package within Composer?

------------------------------
Tom Tubbiola
Special Technical Services (STS Team)
Ttubbiola at oakley.com
949.900.7705

dderusha
Contributor

Neil-

Instead of creating a script, you could go back into composer and correct the permissions on the original package and re-push.

Dan

rockpapergoat
Contributor III

or you could use an ACE to do the same, tailored to prevent deletion of the parent folder. modify something like this to suit your needs:

chmod +a "staff allow list,add_file,search,delete,add_subdirectory,delete_child,file_inherit,directory_inherit,read,write,delete,append,execute" /path/to/folder

drop something like that in as a one-liner or an actual script, and you should be good to go. if they don't need delete, remove that right. make sure it doesn't interfere with whatever app might write files to that directory, though.

talkingmoose
Moderator
Moderator

I have a common folder on machines for one group where everyone must have
On 9/27/11 9:39 AM, "Neal Smith" <Neal.Smith at perrigo.com> wrote:
read/write access. To manage it I use a policy running a command that
resets ownership of new files as well as permissions at every login.

I put the following line in the Run Command field under the Advanced tab
of my policy:

chown -R root:admin /path/to/folder ; chmod -R 777 /path/to/folder

--

William Smith
Technical Analyst
Merrill Communications LLC
(651) 632-1492