Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#10599 - [ mldonkey ] daemon script fails, if user has "/bin/false" as shell (with solution)

Attached to Project: Community Packages
Opened by Bla (madhatter) - Friday, 06 June 2008, 18:58 GMT
Last edited by Corrado Primier (bardo) - Tuesday, 25 November 2008, 22:18 GMT
Task Type Bug Report
Category
Status Closed
Assigned To Corrado Primier (bardo)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
If your mldonkey user's shell is '/bin/false' (as it is typical for daemon users) it will fail to start because su is used to drop privileges. This is easily fixable by adding '-s /bin/sh' to the su command.

patch (diff output):
37,38c37,38
<
< su $MLDUSER -s /bin/sh -c "/usr/bin/mlnet &> /tmp/mldonkey.log &"
---
>
> su $MLDUSER -c "/usr/bin/mlnet &> /tmp/mldonkey.log &"
This task depends upon

Closed by  Corrado Primier (bardo)
Tuesday, 25 November 2008, 22:18 GMT
Reason for closing:  Fixed
Additional comments about closing:  I just uploaded a fixed version. Shame on me for taking so long...

Loading...