cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
rmackay
Level 7

Action to set unix file permissions

Before I jump in and write an action to do this I thought it best to check to see if this particular wheel has already been invented.

Has anyone written a product or wizard action that can set/change unix file permissions?

thanks in advance.
Labels (1)
0 Kudos
(4) Replies
JA_SDT
Level 2

when you include the files in your component, there are several options (under "attributes") where you can specify which permissions you want to set, or if you want to keep those of the original files... i hope this is what you meant
0 Kudos
rmackay
Level 7

Hi. I am aware of this feature. However I need an action to change the attributes as a post install action.
0 Kudos
aramaswa
Level 3

Hi,
You can write a bean where you run the command -- "chmod" and set the attributes as required -- Ex: "+x"
0 Kudos
rmackay
Level 7

That's one way but I am actually going to use the proper FileService apis to set the attributes. Hopefully that will work correctly.
0 Kudos