Startup permissions issue in Debian Lenny
Posted: Sun Jan 18, 2009 11:40 pm
I have a debian server running Lenny with Transmission 1.40 (7096). As root the following command runs transmission with a web interface as run by rc.local or over the command shell.
transmission-daemon -a 192.168.1.* -T -p 80
However I do not wish to run it with root privileges.
sudo -u username transmission-daemon -a 192.168.1.* -T -p 80
That does not work. the process runs without error message but I cannot connect to the web interface. Running the command from the users prompt also does not work and the init script has the same issue with the automatically installed debian-transmission user. Seems there is some permission problem blocking the web interface.
I have also edited /etc/default/transmission-daemon as follows to use the init script as an alternative to the command line or rc.local.
# defaults for transmission-daemon
# sourced by /etc/init.d/transmission-daemon
# change to 1 to enable daemon
ENABLE_DAEMON=1
# this directory stores some runtime information, like torrent files and config
CONFIG_DIR="/var/lib/transmission-daemon/info"
# default options for daemon, see transmission-daemon(1) for more options
OPTIONS="--allowed 192.168.1.* --no-auth --port 80 --config-dir $CONFIG_DIR"
But again no change.
So I think it may be a socket permission error. How do I fix it ?
transmission-daemon -a 192.168.1.* -T -p 80
However I do not wish to run it with root privileges.
sudo -u username transmission-daemon -a 192.168.1.* -T -p 80
That does not work. the process runs without error message but I cannot connect to the web interface. Running the command from the users prompt also does not work and the init script has the same issue with the automatically installed debian-transmission user. Seems there is some permission problem blocking the web interface.
I have also edited /etc/default/transmission-daemon as follows to use the init script as an alternative to the command line or rc.local.
# defaults for transmission-daemon
# sourced by /etc/init.d/transmission-daemon
# change to 1 to enable daemon
ENABLE_DAEMON=1
# this directory stores some runtime information, like torrent files and config
CONFIG_DIR="/var/lib/transmission-daemon/info"
# default options for daemon, see transmission-daemon(1) for more options
OPTIONS="--allowed 192.168.1.* --no-auth --port 80 --config-dir $CONFIG_DIR"
But again no change.
So I think it may be a socket permission error. How do I fix it ?