The init script always starts the transmission-daemon process with root privileges. For me it worked to change the line runas_user_opt="--user ${runas_user}" to runas_user_opt="--chuid ${runas_user}" I'm not sure if this is correct because --chuid is not listed in my start-stop-daemon man page but it is working correct now. Reproducible: Always Steps to Reproduce: 1. Install net-p2p/transmission-daemon 2. start /etc/init.d/transmission-daemon Actual Results: transmission-daemon started with root privileges Expected Results: transmission-daemon should start with the user configured in conf.d script
emerge --info is missing so I can't possibly know what baselayout and/or openrc you are using...
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r5 x86_64) ================================================================= System uname: Linux-2.6.30-gentoo-r5-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_5050e-with-gentoo-1.12.11.1 Timestamp of tree: Mon, 28 Sep 2009 09:15:01 +0000 app-shells/bash: 4.0_p28 dev-lang/python: 2.5.4-r3, 2.6.2-r1 dev-util/cmake: 2.6.4 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.4_p6, 1.7.9-r1, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.27-r2 ACCEPT_KEYWORDS="amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-march=k8 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.inode.at/ " LANG="de_DE.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="de" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/markus /usr/local/portage/layman/roslin /usr/local/portage/layman/sunrise" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X a52 aac acl acpi alsa amd64 branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr emboss encode evo fam firefox flac fortran gif gnome gpm gstreamer gtk hal iconv isdnlog jpeg ldap libnotify mad mikmod mmx modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spl sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype unicode usb vorbis wavpack webkit wma x264 xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard evdev mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
i am not seeing any info what version of transmission this applies to. i was also struggling with a similar case and my problem ended up being outdated init.d/conf.d files. please review http://bugs.gentoo.org/238260, my transmission-daemon works as expected with the resolution in there.
the /etc/init.d/transmission-daemon needs to be changed: runas_user_opt="" if [ -n "${runas_user}" ]; then runas_user_opt="--chuid ${runas_user}" fi --user should be --chuid works here
Did anyone of you actually read the conf.d file? It states loud and clear: # Run daemon as another user (username or username:groupname) # (Note: works only on systems with sys-apps/openrc, leave unset otherwise) And at least the only one who took the time to post his emerge --info does not run openrc: (In reply to comment #2) > sys-apps/baselayout: 1.12.11.1 And if you are running openrc and does start-stop-daemon --help, you get the following: -c, --chuid <arg> deprecated, use --user -u, --user <arg> Change the process user So actually the script works right as it should, there is just no backward-compability with old baselayout-1, and THAT is your bug. For me running openrc everything is fine.
I unfortunately forgot to post the transmission version I was using at that time but I think the comment in the conf.d file wasn't there in that version. This was my first bug report I just tried to help so please don't kill me. I hope that changing the resolution to INVALID is right.
(In reply to comment #6) > I unfortunately forgot to post the transmission version I was using at that > time > but I think the comment in the conf.d file wasn't there in that version. > > This was my first bug report I just tried to help so please don't kill me. > > I hope that changing the resolution to INVALID is right. > I was not out for biting heads, sorry if I gave tha impression. But the old conf.d (that did not have the message) was removed from portage tree 20 june 2009, so anyone merging/reemergin/updating transmission since must have had the new conf.d. And since the 16 sept a version using these has been stable for adm64 and x86, so every comment after that is done by people with outdated versions of transmission complaining about something that is commented in their conf.d and that is what I was reacting to.