FS#15476 - [transmission-cli] can't run as user with /bin/false shell

Attached to Project: Arch Linux
Opened by Jonathan Liu (net147) - Saturday, 11 July 2009, 02:59 GMT
Last edited by Eric Belanger (Snowman) - Saturday, 03 October 2009, 21:05 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Alexander Fehr (pizzapunk)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The transmissiond service runs the command:
su -l -c "/usr/bin/transmission-daemon" $TRANS_USER

This doesn't work if the shell is set to /bin/false in which case the command will execute:
/bin/false -c "/usr/bin/transmission-daemon" as the user $TRANS_USER

To fix this, the shell to use must be specified adding the -s option to the command:
su -l -s "/bin/sh" -c "/usr/bin/transmission-daemon" $TRANS_USER


Additional info:
* transmission-cli 1.72-1

Steps to reproduce:
* Change shell for transmissiond user to /bin/false
* /etc/rc.d/transmissiond start
This task depends upon

Closed by  Eric Belanger (Snowman)
Saturday, 03 October 2009, 21:05 GMT
Reason for closing:  Fixed
Additional comments about closing:  transmission-cli-1.75-1
Comment by Jonathan Liu (net147) - Saturday, 08 August 2009, 12:39 GMT
This issue also applies to transmission-cli 1.73-1.

Loading...