<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>83644</bug_id>
          
          <creation_ts>2005-03-01 01:44 0000</creation_ts>
          <short_desc>MPD ebuild 0.11.5 doesn&apos;t install mpd user correctly - sets home directory to /dev/null</short_desc>
          <delta_ts>2005-11-03 04:39:22 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Ebuilds</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>bkreulen@yahoo.com</reporter>
          <assigned_to>ticho@gentoo.org</assigned_to>
          <cc>betelgeuse@gentoo.org</cc>
    
    <cc>ladanyi@tmit.bme.hu</cc>
    
    <cc>moloh@gentoo.org</cc>
    
    <cc>ncolgan@hotpop.com</cc>
    
    <cc>sound@gentoo.org</cc>

      

      
          <long_desc isprivate="0">
            <who>bkreulen@yahoo.com</who>
            <bug_when>2005-03-01 01:44:03 0000</bug_when>
            <thetext>After an install of MPD, and succesfully creating the database, trying to run mpd produces the following error:

bkreulen mpd # /etc/init.d/mpd start
 * Starting Music Player Daemon...
can&apos;t create directory /dev/null/.mcop (Not a directory)

In /etc/passwd, the home directory for user mpd is /dev/null. Changing this to /home/mpd (and creating it, of course), and rerunning the init script solves this problem.

Reproducible: Always
Steps to Reproduce:
1. See &quot;details&quot;
2.
3.

Actual Results:  
It worked

Expected Results:  
Is this question really needed?

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5,
glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r13 i686)
=================================================================
System uname: 2.6.9-gentoo-r13 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005, 00:22:21)]
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.5, 1.7.9-r1, 1.6.3, 1.4_p6, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS=&quot;x86&quot;
AUTOCLEAN=&quot;yes&quot;
CFLAGS=&quot;-O2 -march=athlon-xp -fomit-frame-pointer&quot;
CHOST=&quot;i686-pc-linux-gnu&quot;
CONFIG_PROTECT=&quot;/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown/usr/kde/3/share/config /usr/share/config /var/qmail/control&quot;
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot;
CXXFLAGS=&quot;-O2 -march=athlon-xp -fomit-frame-pointer&quot;
DISTDIR=&quot;/usr/portage/distfiles&quot;
FEATURES=&quot;autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms&quot;
GENTOO_MIRRORS=&quot;http://mir.zyrianes.net/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://linuv.uv.es/mirror/gentoo/&quot;
MAKEOPTS=&quot;-j2&quot;
PKGDIR=&quot;/usr/portage/packages&quot;
PORTAGE_TMPDIR=&quot;/var/tmp&quot;
PORTDIR=&quot;/usr/portage&quot;
PORTDIR_OVERLAY=&quot;/usr/local/portage&quot;
SYNC=&quot;rsync://rsync.europe.gentoo.org/gentoo-portage&quot;
USE=&quot;x86 X apache2 apm arts avi berkdb bitmap-fonts cdparanoia cdr crypt cups
curl dvd dvdr emboss encode esd f77 fam flac font-server foomaticdb fortran gd
gdbm gif gpm gtk2 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mikmod
motif mpeg mysql ncurses nlsoggvorbis opengl oss pam pda pdflib perl php pic png
python qt quicktime readline samba sdl spell ssl svga tcpd tiff truetype
truetype-fonts type1-fonts usb xml2 xmms xv zlib linguas_fr&quot;
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>pioto01@gmail.com</who>
            <bug_when>2005-07-22 15:56:10 0000</bug_when>
            <thetext>Hmm... seeing as mpd isn&apos;t a login user, I don&apos;t feel that it should have its
home be in /home

I feel that mpd should have a home of /var/lib/mpd or somethign similar to that.

Also, related to this, the default mpd.conf refers to $HOME in some of the
default [disabled] options.  With a home of /dev/null, this won&apos;t work.  If it
has a home of /var/lib/mpd or some such thing it will be clearly noted that it
is not a normal login user (it has a shell of /bin/false), and it will allow a
user to simply uncomment those options and have things work.  This makes things
overall mroe consistent.
</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-10-19 22:54:11 0000</bug_when>
            <thetext>*** Bug 101662 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-10-19 22:55:21 0000</bug_when>
            <thetext>Reassigning to self, I&apos;ll deal with this.

The homedir has been changed to /var/lib/mpd in media-sound/mpd-svn package,
I&apos;ll do the same to media-sound/mpd after few more days of testing.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-10-20 01:43:34 0000</bug_when>
            <thetext>*** Bug 106710 has been marked as a duplicate of this bug. ***</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-11-01 02:50:38 0000</bug_when>
            <thetext>mpd-0.11.5-r2 has been committed to portage. The ebuild changes mpd&apos;s homedir to
/var/lib/mpd, and tweaks mpd.conf to contain correct paths. Let me know if
something goes wrong, either by reopening this bug, or by opening a new one.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>moloh@gentoo.org</who>
            <bug_when>2005-11-01 14:09:32 0000</bug_when>
            <thetext>I don&apos;t know if that is good decision...    
mpd development team is aware of this problem and this info &quot;can&apos;t create  
directory /dev/null/.mcop (Not a directory)&quot; will noy show up, also this is no  
problem for application. 
I think that better is to set absolute paths in mpd.conf only. 
Only argument for change of home directory is problem with usage of esound 
with mpd. 
    </thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>ticho@gentoo.org</who>
            <bug_when>2005-11-03 01:28:32 0000</bug_when>
            <thetext>What are you talking about? The .mcop file is not created by mpd itself, but by
arts daemon, which creates this in user&apos;s homedir.

About absolute paths, I&apos;m not aware that we&apos;re using anything else than absolute
paths in mpd.conf.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>moloh@gentoo.org</who>
            <bug_when>2005-11-03 04:39:22 0000</bug_when>
            <thetext>Ok. 
 
I must say that this is my error(?). 
Actually there was problem with creation of .mcop directory for arts (during 
probing available outputs, when in mpc.conf there isn&apos;t any info specified), 
but this is not same situation. 
 
Sorry for previous comment. 
 
 </thetext>
          </long_desc>
      
    </bug>

</bugzilla>