change file owner in a directory
I have a directory , many files from different users will copy files to it , so there are many file owners in this directory , if I would like to make all file owner are a specific user , that means once the files are copy to this different , then change its owner to a specific user , I know I an set a cron job , but it seems too last to change owner as I would like do it real time when the files are created .
can advise what can I do ? thanks |
Did you try anything so far? It can be done using chown cmd, with recurssive option:
Code:
chown -R new_owner /path/to/dir |
All times are GMT -5. The time now is 07:32 AM. |