Arch Linux

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#19191 - [deluge] can't run as user with /bin/false shell

Attached to Project: Arch Linux
Opened by Jonathan Liu (net147) - Wednesday, 21 April 2010, 10:11 GMT
Last edited by Ionut Biru (wonder) - Wednesday, 21 April 2010, 13:40 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ionut Biru (wonder)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
in /etc/rc.d/deluged: su -l -c "/usr/bin/deluged" $DELUGE_USER
in /etc/rc.d/deluge-web: su -l -c "/usr/bin/deluge-web -f" $DELUGE_USER

This doesn't work if the shell is set to /bin/false in which case the command will be passed as an argument to the /bin/false shell and afil:
for /etc/rc.d/deluged: /bin/false -c /usr/bin/deluged
for /etc/rc.d/deluge-web: /bin/false -c /usr/bin/deluge-web

The solution is to add -s /bin/sh:
in /etc/rc.d/deluged: su -l -s /bin/sh -c "/usr/bin/deluged" $DELUGE_USER
in /etc/rc.d/deluge-web: su -l -s /bin/sh -c "/usr/bin/deluge-web -f" $DELUGE_USER

Additional info:
* deluge 1.2.3-1

Steps to reproduce:
* Install deluge
* Set DELUGE_USER to a user with /bin/false shell in /etc/conf.d/deluged
* /etc/rc.d/deluged start && /etc/rc.d/deluge-web start
This task depends upon

Closed by  Ionut Biru (wonder)
Wednesday, 21 April 2010, 13:40 GMT
Reason for closing:  Implemented
Additional comments about closing:  1.2.3-2
Comment by Jonathan Liu (net147) - Wednesday, 21 April 2010, 10:28 GMT
Would be a good idea if the deluge user was set to use the /bin/false shell after this fix.

Loading...