FS#19173 - [mpd] mpd user not created during mpd install

Attached to Project: Arch Linux
Opened by Abe Akesson (AbeAkesson) - Monday, 19 April 2010, 11:50 GMT
Last edited by Andrea Scarpino (BaSh) - Monday, 19 April 2010, 12:27 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andrea Scarpino (BaSh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: Mpd user is not created during install of MPD.


Additional info:
* package version(s) 0.15.9-4
* config and/or log files etc.


Steps to reproduce:

During a reinstall of Arch Linux and when installing MPD, the useradd help message printed out along with two chown errors. The mpd user was not created and /var/{lib,log}/mpd was still owned by root. I did a second clean install of Arch to be sure this was not a one time error.

I believe the problem is in line seven of .INSTALL, as the useradd command is missing the username to create at the very end of that line. Currently, it reads:

getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" 1>/dev/null

when, after consulting the useradd manpage, it probably should read:

getent passwd "mpd" &>/dev/null || useradd -r -u 45 -g mpd -d "/var/lib/mpd" -s "/bin/true" -G "audio" mpd 1>/dev/null

Please note that this would probably not effect upgrading users, only users initially install Mpd. When I did a third clean install of Arch, I created Mpd user prior to trying to install Mpd, it worked without any errors.

--
If this bug report is not clear, please e-mail me or check out the thread on the Arch Linux forums here:
http://bbs.archlinux.org/viewtopic.php?id=95573
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Monday, 19 April 2010, 12:27 GMT
Reason for closing:  Fixed
Additional comments about closing:  mpd 0.15.9-5

Loading...