specifying file permission

Feature requests not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
Sturm
Posts: 1
Joined: Fri Nov 28, 2008 6:01 pm

specifying file permission

Post by Sturm »

I, presumably like most people, run transmission-daemon as a daemon that starts up on bootup under root. Unfortunetely, because the files created by transmission-daemon are owned by root, I cannot move or delete the them. As such, I request that you be able be able to specify the file permission on the command line or otherwise.
dramis
Posts: 5
Joined: Sat Aug 09, 2008 11:37 am

Re: specifying file permission

Post by dramis »

Running trasmission on root is not a good idea. Create a user for that and set is umask to get the correct file permission.
RJSC
Posts: 3
Joined: Thu Jan 15, 2009 1:40 am

Re: specifying file permission

Post by RJSC »

My case is different.
I have transmission-daemon running as its own user (transmission), which is in a group.
However, it sets the group permissions as read-only.
When I want to delete some files I have to open a File Manager and set the write permission for its group.
How can I make transmission-daemon write its files with write permission to its group?
dramis
Posts: 5
Joined: Sat Aug 09, 2008 11:37 am

Re: specifying file permission

Post by dramis »

Set the umask
m4rc0
Posts: 1
Joined: Wed Jan 21, 2009 8:00 pm

Re: specifying file permission

Post by m4rc0 »

How can I set the umask??
RJSC
Posts: 3
Joined: Thu Jan 15, 2009 1:40 am

Re: specifying file permission

Post by RJSC »

Code: Select all

umask 002
I've just putted this line before calling transmission daemon in the init.d script that came on my Linux Distribution.
Calculating the number is kind of hard and badly explained / documented over the web.
I used the number 002 because I've read in some website that it gave both the user and it's group Read/Write access.
It's in this little hugely complicated details that Linux and other Unix-like Operating Systems scare users away. :(
buzink
Posts: 1
Joined: Sat Jan 30, 2010 10:18 pm

Re: specifying file permission

Post by buzink »

Just set umask = 0 in the settings.json file.

source: http://trac.transmissionbt.com/wiki/EditConfigFiles
Post Reply