chgrp after creating a file
Hi all,
I'd like to do a chgrp on a file each time I create a new one in a home dir.
for instance, if user user_a creates a file un /home/user_b (the 2 users belong to the same group 'users' and the group has rwx access on /home/user_b), the file created belongs to user_a:user_a.
I want them to belong to the group to wich belongs user_a and user_b.
I mean: user_a:users
How can I do this automatically?
Am I clear? I'm no sure..:-/
any ideas?
thanks
|