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

Attached to Project: Arch Linux
Opened by Jonathan Liu (net147) - Monday, 10 August 2009, 01:34 GMT
Last edited by Andrea Scarpino (BaSh) - Sunday, 04 October 2009, 01:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Douglas Soares de Andrade (dsa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
The svnserve service runs the command:
su $SVNSERVE_USER -c "/usr/bin/svnserve -d $SVNSERVE_ARGS" &

This will pass the command as arguments to /bin/false which will seem to work but silently fail.

To fix this, the shell to use must be specified adding the -s option to the command:
su "$SVNSERVE_USER" -s "/bin/sh" -c "/usr/bin/svnserve -d $SVNSERVE_ARGS" &

Additional info:
* subversion 1.6.4-1

Steps to reproduce:
* Set SVNSERVE_USER to a user with /bin/false shlel in /etc/conf.d/svnserve
* /etc/rc.d/svnserve start
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Sunday, 04 October 2009, 01:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  subversion 1.6.5-2

Loading...