Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I do not believe so (someone please correct me if I am wrong).. File ownership is determined by the 'creator' of the file, and I do not think it can be changed on a directory by directory basis. I supposed you could create a script to run as a cron job that would chown all the files in the directory periodically, but that is more of a workaround, and not a solution.
funny how obscure questions tend to crop up in bunches....
you can set the sticky bit on the directory (chmod 1777 dir) which will force any file created in that directory to be owned by the group. I don't believe it will set the actual user, but that's the point of groups really, so it should be sufficient