Skip site navigation (1)Skip section navigation (2)
Date:      Fri,  8 Oct 2010 11:08:07 -0500 (CDT)
From:      Eric F Crist <ecrist@secure-computing.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Josh Paetzel <jpaetzel@FreeBSD.org>
Subject:   ports/151314: www/shellinabox: update rc script to allow passing of user/group
Message-ID:  <20101008160807.4F1676D43A@cartman.secure-computing.net>
Resent-Message-ID: <201010081610.o98GA2k0022608@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         151314
>Category:       ports
>Synopsis:       www/shellinabox: update rc script to allow passing of user/group
>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:   Fri Oct 08 16:10:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Eric F Crist
>Release:        FreeBSD 9.0-CURRENT amd64
>Organization:
Secure Computing Networks & ClaimLynx, Inc
>Environment:
System: FreeBSD cartman.secure-computing.net 9.0-CURRENT FreeBSD 9.0-CURRENT #2: Mon Apr 12 12:46:23 CDT 2010 root@cartman.secure-computing.net:/usr/obj/usr/src/sys/GENERIC amd64

>Description:
	This patch will fix the shellinabox rc script to allow for passing of user and group through variables set in rc.conf.  This patch honors existing configs by defaulting to shellinabox as user/group.
	
>How-To-Repeat:
>Fix:

--- siab.diff begins here ---
Index: files/shellinaboxd.in
===================================================================
RCS file: /home/ncvs/ports/www/shellinabox/files/shellinaboxd.in,v
retrieving revision 1.2
diff -u -r1.2 shellinaboxd.in
--- files/shellinaboxd.in	16 Aug 2010 00:04:03 -0000	1.2
+++ files/shellinaboxd.in	8 Oct 2010 15:56:59 -0000
@@ -18,6 +18,8 @@
 # shellinaboxd_pidfile="/var/run/shellinabox.pid"
 # shellinaboxd_port="4200"
 # shellinaboxd_certdir="%%PREFIX%%/etc/shellinabox"
+# shellinaboxd_user="shellinabox"
+# shellinaboxd_group="shellinabox"
 # shellinaboxd_certfile=""
 # 	Example: shellinaboxd_certfile="/your/cert.pem"
 # shellinaboxd_flags=""
@@ -47,11 +49,13 @@
 shellinaboxd_enable=${shellinaboxd_enable:-"NO"}
 shellinaboxd_fib=${shellinaboxd_fib:-"NONE"}
 shellinaboxd_port=${shellinaboxd_port:-"4200"}
+shellinaboxd_user=${shellinaboxd_user:-"shellinabox"}
+shellinaboxd_group=${shellinaboxd_group:-"shellinabox"}
 shellinaboxd_certdir=${shellinaboxd_certdir:-"%%PREFIX%%/etc/shellinabox"}
 
 pidfile=${shellinaboxd_pidfile:-"/var/run/shellinaboxd.pid"}
 
-command_args="--group=shellinabox --user=shellinabox --port=${shellinaboxd_port} --background=${pidfile}"
+command_args="--group=${shellinaboxd_group} --user=${shellinaboxd_user} --port=${shellinaboxd_port} --background=${pidfile}"
 
 if [ "${shellinaboxd_certfile}" = "" ]; then
 	required_dirs="${shellinaboxd_certdir}"
--- siab.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101008160807.4F1676D43A>