This should be simple, but I am not getting it to work in test.
An torrent application I am using (CLI based) does not yet have the ability to define the user/group/permissions of the files it downloads. It also enjoys setting the permissions of the files in a way that they can't be modified much.
I would like to use set-uid and set-group-id to solve this.
Given a path of something like this: /Volumes/torrents/movies
I would like the "movies" directory to allow all users on the system full read and write access. Files should not be executable, but of course, the directories will need to be in order to open of cd into them. I trust all users on this system, though I will refrain from execute bits on files to prevent accidental mistakes.
Anything saved/stored within "movies" should inherit the user/group/permissions of movies, and trickle down to all sub directories and files. With this, I should not have to worry about the lack of permissions setting feature of the application. If movies is set to rw for foo:bar and user the_user comes along and puts a file in movies, I would expect the files to become rw foo:bar.
Thanks. I have tried this a few different ways, and I am coming up short. I rarely use set-uid and set-group-id or the sticky bits.