transmission-daemon UID and permissions
Hi all,
I built a simple home server/WAP/ADSL gateway on a FreeBSD box and I've been running the transmission daemon to handle Bittorrent downloads. I access the downloaded files from a couple of desktop machines via NFS shares. I took me awhile to figure out why the downloaded files were read-only on these NFS disks -- they are owned by UID 921, transmission-daemon. This makes managing downloaded files via Nautilus on the desktop boxes a bit cumbersome. I'm wondering how others arrange this. Manually chown stuff? Or this there a smarter approach? I could run transmission-daemon with my own UID, but there are probably very good reasons why this is not a good idea ;) |
Use setfacl on the containing directory, you have to unset/reset the umask
Quote:
|
Ladies and Gentlemen, for the win:
Drum roll ...... ta da dish ! Run it as you with sudo ! Code:
sudo -u user transmission-daemon |
OK, that is a good idea.
There alread is a start-up script in /usr/local/etc/rc.d/ which includes the following lines: Code:
: ${transmission_enable:=NO} But at this point, I have to ask: why use sudo? Why not run it simply under my UID, 1000? Thanks |
Quote:
Quote:
|
Quote:
That's a bad idea. Putting that information in a script? Worse idea..."fire you on the spot" kind of bad idea, actually. If you're just messing around, it's fine. If you're trying to learn a skill... read up on setfacl. |
Quote:
Quote:
Quote:
|
All times are GMT -5. The time now is 08:06 AM. |