ports/109497: x11-servers/xorg-fontserver rc.d/xfs.sh script missing "-user"
Stefan `Sec` Zehl
sec at 42.org
Sat Feb 24 19:20:05 UTC 2007
>Number: 109497
>Category: ports
>Synopsis: x11-servers/xorg-fontserver rc.d/xfs.sh script missing "-user"
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Feb 24 19:20:04 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Stefan `Sec` Zehl
>Release: FreeBSD 6.2-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD ice 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #36: Sun Oct 1 00:50:35 CEST 2006 root@:/export/obj/export/src/sys/ICE i386
>Description:
There is usually no need to run xfs as root, and in fact, I have been running
xfs as user nobody for quite some time.
I was starting xfs from /etc/rc.local as
/usr/X11R6/bin/xfs -daemon -user nobody
I tried to convert it to use /usr/X11R6/etc/rc.d/xfs.sh, but it lacked an
option to set "-user " as commandline switch.
>How-To-Repeat:
>Fix:
I created a small patch:
--- xfs.sh.org Sat Feb 24 19:53:01 2007
+++ xfs.sh Sat Feb 24 19:54:06 2007
@@ -29,6 +29,8 @@
command="%%PREFIX%%/bin/${name}"
command_args="-config ${xfs_config} -daemon"
+[ ! -z "$xfs_user" ] && command_args="${command_args} -user ${xfs_user}"
+xfs_user= # unset, as automatic scripts try to use that variable, too
required_files="$xfs_config"
extra_commands="reload"
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list