LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   automatically change the owner , mode (https://www.linuxquestions.org/questions/linux-newbie-8/automatically-change-the-owner-mode-4175525130/)

byran cheung 11-11-2014 08:10 PM

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

byran cheung 11-12-2014 09:37 PM

is it impossible to that ? thanks

evo2 11-12-2014 09:51 PM

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.

byran cheung 11-13-2014 04:16 AM

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.