Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256899 - media-sound/murmur-1.1.7: runs as root
Summary: media-sound/murmur-1.1.7: runs as root
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Timo Gurr (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-30 09:38 UTC by Stulda
Modified: 2011-06-06 09:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stulda 2009-01-30 09:38:20 UTC
I think is not good running murmur under root.

You should add --chuid "${MURMUR_USER}" into murmur init file.

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-30 19:50:03 UTC
You mean that --user "${MURMUR_USER}" doesn't (already) do that?
Comment 2 Atman Sense 2009-01-30 23:20:34 UTC
Could be a baselayout/openrc problem:

baselayout-1:
       -u|--user username|uid
              Check for processes owned by the user specified by  username  or
              uid.

baselayout-2/openrc:
     -u, --user user[:group]
             Start the daemon as the user and update $HOME accordingly or stop
             daemons owned by the user. You can optionally append a group name
             here also.


These packages could be affected by this problem, too:

/usr/portage/net-analyzer/centreon/files/ods.initd
/usr/portage/net-misc/mDNSResponder/files/dnsextd.init.d
/usr/portage/net-p2p/deluge/files/deluged.init
/usr/portage/sci-physics/root/files/olbd.initd
/usr/portage/sci-physics/root/files/rootd.initd
/usr/portage/sci-physics/root/files/xrootd.initd
/usr/portage/net-im/gg-transport/files/jggtrans-2.2.2-r1

Comment 3 Timo Gurr (RETIRED) gentoo-dev 2009-02-04 00:06:36 UTC
Works fine here. Please provide your emerge --info regarding the possible baselayout problem.
Comment 4 Kirill Elagin 2009-02-23 22:26:43 UTC
That's it -- in baselayout-1 (baselayout-2 isn't stable) --user options doesn't change set correct uid. So I had to replace it with --chuid.
Comment 5 Mark 2009-03-07 16:17:43 UTC
aaah, that's why murmur doesn't work here.

Ich checked the murmur-website and added 

  <policy user="root">
    <allow own="net.sourceforge.mumble.murmur"/>
  </policy>

to my dbus config and then murmur was able to connect to dbus -- finally!

After doing so I found this bug, removed the root-policy from my dbus config and added --user "${MURMUR_USER}" to my init.d/mumble script, restarted dbus and mumble and then it worked without being root.

So --user "${MURMUR_USER}" does not do the trick here.
My emerge --info output is:

Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28 i686)
=================================================================                 
System uname: Linux-2.6.28-i686-AMD_Athlon-tm-_XP_1700+-with-glibc2.0             
Timestamp of tree: Sat, 07 Mar 2009 10:00:01 +0000                                
distcc 3.0 i686-pc-linux-gnu [disabled]                                           
app-shells/bash:     3.2_p39                                                      
dev-java/java-config: 1.3.7-r1, 2.1.6-r1                                          
dev-lang/python:     2.4.4-r14, 2.5.2-r7                                          
dev-python/pycrypto: 2.0.1-r6                                                     
dev-util/cmake:      2.4.8                                                        
sys-apps/baselayout: 1.12.11.1                                                    
sys-apps/sandbox:    1.2.18.1-r2                                                  
sys-devel/autoconf:  2.13, 2.63                                                   
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.0-r4                                                    
sys-devel/libtool:   1.5.26                                                       
virtual/os-headers:  2.6.28-r1                                                    
ACCEPT_KEYWORDS="x86"                                                             
CBUILD="i686-pc-linux-gnu"                                                        
CFLAGS="-march=athlon-xp -O2 -pipe"                                               
CHOST="i686-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/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"                                                                     
CXXFLAGS="-march=athlon-xp -O2 -pipe"                                                     
DISTDIR="/usr/portage/distfiles"                                                          
FEATURES="digest distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"                                          
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"                                                                               
LDFLAGS="-Wl,-O1"                                                                         
LINGUAS="de"                                                                              
MAKEOPTS="-j2"                                                                            
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="   "
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X a52 aac acl acpi alsa apache2 bash-completion berkdb bzip2 cddb cdr cgi cli cracklib crypt css cups dbus dri dts dvd dvdr encode exif extra extras fam ffmpeg firefox flac fortran ftp gdbm gif gimp gpm graphviz gtk hal hddtemp iconv imagemagick imap ipv6 isdnlog jabber java javascript jingle joystick jpeg jpeg2k kde lame latex lm_sensors lzo madmatroska mbox midi mime mmx mp3 mp4 mpeg mplayer mudflap musepack musicbrainz mysql ncurses nls nptl nptl-only nptlonly nsplugin odbc ogg openal opengl openmp pam pcre pdf perl png posix postgres pppd python qt qt3 qt3support quicktime readline reflection scanner sdl session sharedmem snmp speex spl sqlite3 ssl subversion suexec svg sysfs syslog sysvipc taglib tcpd tex4ht theora threads truetype unicode v4l v4l2 vim-syntax vorbis x264 x86 xattr xine xinetd xml xorg xulrunner xv xvid zlib" ALSA_CARDS="emu10k1 sb16" 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 davdav_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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa aiglx"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 Timo Gurr (RETIRED) gentoo-dev 2011-06-06 09:30:19 UTC
Should be fixed now that baselayout2/openrc is stable, if you still need the dbus workaround with >=murmur-1.2.3 and bl2/openrc please reopen.