I have a machine running Ubuntu 12.04 server with transmission-daemon running to handle bitorrents. Everything works fine except the transmission-daemon creates files as the user/group, debian-transmission
, and with 744 file permissions.
I would like to be able to delete and move these file from a samba share.
I considered changing the primary group of the user debian-transmission, but I was worried that might mess up access to other files.
I thought it would be better to change the default permission of new files created by debian-transmission to 774, and add myself to the group debian-transmission.
I know that this can be done with a umask, but my understanding is that this would be set in the .profile file and since debian-transmission has no home folder I wan't sure if that file existed for the user. So how to I accomplish this?
Suggestions or alternate solutions are welcome. Thanks in advance.
You can specify a umask in transmission's config file (
/etc/transmission-daemon/settings.json
). Umask we normally represent in octal, but unfortunately, json does not support that, so we have to convert it to base 10. You can do this in the shell like this:That's the default, but you probably want 002, which is the same in decimal, so
Another thing. If you change the group ownership of the download dir, and add the setgid bit on it, all files created in that directory will have the same group ownership as that directory.
It will not affect files that already exist. See http://mywiki.wooledge.org/Permissions for more.
Try this:
And change in the file: sudo nano /etc/transmission-daemon/settings.json
Just restart the daemon: