I want to use MediaTomb to deliver videos and music downloaded by transmission-daemon. But MediaTomb cannot access files in the home directory of transmission-daemon. Then I changed the umask value in the configuration file of transmission-daemon, but it does not work. After some research, I found there is a command that always resets the permission of the home directory to 750, and that is the problem. Everything is fine after the red line in the following text is commented out. Is this a defeat?
Code:
transmission_prestart()
{
install -d -o $transmission_user ${pidfile%/*}
mkdir -p $transmission_conf_dir $transmission_download_dir
chown $transmission_user:$transmission_group $transmission_download_dir
chown -R $transmission_user:$transmission_group $transmission_conf_dir
chgrp $transmission_group $transmission_conf_dir
[quote][color="Red"] chmod 750 $transmission_conf_dir
[/color][/QUOTE] if [ -n "$transmission_web_home" ]; then
TRANSMISSION_WEB_HOME=$transmission_web_home
export TRANSMISSION_WEB_HOME
fi
}