automatically change the owner , mode
I have a folder , I will always create new file in it , would advise if I want all new file will be changed to a specific owner , mode once it is created , what can I do , except use cron job to change it , is there any other method ? thanks
|
is it impossible to that ? thanks
|
Hi,
I think you can achieve exactly what you describe with setfacl, but I suspect a solution to the actual problem might be possible by setting a sticky bit which chmod. Perhaps if you could describe the bigger picture about what you actually want to achieve you will get more help. Evo2. |
thanks reply ,
For example , I have a folder which used for keeping the logs for a specific group of users to share , different users will generate new files to this folder , to make sure all user its group is "edp" can read these files , so I want these files changed the owner to "user1:edp" and the file mode to "644" once it is created , is it possible ? Thanks |
All times are GMT -5. The time now is 11:07 PM. |