From nobody@FreeBSD.org  Sun Nov 13 14:24:16 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3BBEC106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Nov 2011 14:24:16 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 12CE68FC08
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Nov 2011 14:24:16 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pADEOFbd082551
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 13 Nov 2011 14:24:15 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pADEOFgT082550;
	Sun, 13 Nov 2011 14:24:15 GMT
	(envelope-from nobody)
Message-Id: <201111131424.pADEOFgT082550@red.freebsd.org>
Date: Sun, 13 Nov 2011 14:24:15 GMT
From: Troy <tbahan@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Shellinabox
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: olivier@cochard.me

>Number:         162518
>Category:       ports
>Synopsis:       www/shellinabox
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    crees
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 13 14:30:10 UTC 2011
>Closed-Date:    Thu Dec 22 09:58:52 UTC 2011
>Last-Modified:  Thu Dec 22 09:58:52 UTC 2011
>Originator:     Troy
>Release:        9.0 RC1
>Organization:
Home
>Environment:
FreeBSD mail.homefbsd.org 9.0-RC1 FreeBSD 9.0-RC1 #0: Tue Oct 18 18:51:43 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
After starting the shellinabox, /var/run/ did not have .pid file but ps -ax would show that the program was running.
Client side:
The browser would display a login prompt.  As soon as the user name has been entered, it closed the session.

example:
mail1 login: username                                                                                                                   
Session closed.                                                                                                                         



/etc/rc.conf

shellinaboxd_enable="YES"
shellinaboxd_port="8022"
shellinaboxd_certdir="/usr/local/etc/shellinabox"

>How-To-Repeat:
cd /usr/ports/www/shellinabox/
make
make install

/usr/local/etc/rc.d/shellinaboxd start

ls /var/run/

ps -ax | grep shellinaboxd
>Fix:
Partial fix:
If I run the program from the command line, it works without a problem.

Working command line:
/usr/local/bin/shellinaboxd --user=shellinabox --group=shellinabox --port=8022 --background=/var/run/shellinaboxd.pid --cert=/usr/local/etc/shellinabox

Client side:

login: username                                                                                                                   
Password:                                                                                                                               
Last login: Sun Nov 13 09:00:58 from 192.168.1.33                                                                                       
FreeBSD 9.0-RC1 (GENERIC) #0: Tue Oct 18 18:51:43 UTC 2011                                                                              
                                                                                                                                        
Welcome to FreeBSD!...etc


NOTE:  When it is working, only "login:" appears not "<host> login:".

Something in the rc starting sequence that I cannot find.  I hope this helps.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-www->freebsd-ports-bugs 
Responsible-Changed-By: gjb 
Responsible-Changed-When: Sun Nov 13 17:33:48 UTC 2011 
Responsible-Changed-Why:  
Ports PR. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Sun Nov 13 17:45:20 UTC 2011 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 

From: Edwin Groothuis <edwin@FreeBSD.org>
To: olivier@cochard.me
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/162518: www/shellinabox
Date: Sun, 13 Nov 2011 17:45:18 UT

 Maintainer of www/shellinabox,
 
 Please note that PR ports/162518 has just been submitted.
 
 If it contains a patch for an upgrade, an enhancement or a bug fix
 you agree on, reply to this email stating that you approve the patch
 and a committer will take care of it.
 
 The full text of the PR can be found at:
     http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162518
 
 -- 
 Edwin Groothuis via the GNATS Auto Assign Tool
 edwin@FreeBSD.org

From: =?ISO-8859-1?Q?Olivier_Cochard=2DLabb=E9?= <olivier@cochard.me>
To: bug-followup@freebsd.org, tbahan@yahoo.com
Cc:  
Subject: Re: ports/162518: www/shellinabox
Date: Tue, 22 Nov 2011 11:26:42 +0100

 Hi Troy,
 
 I'm sorry but I can't reproduce your problem.
 
 I've just installed a 9.0-RC2 under Virtualbox selecting "ports"
 distribution sets and uses theses commands:
 
 # cd /usr/ports/www/shellinabox/
 # make install
 (...)
 # sh -x /usr/local/etc/rc.d/shellinaboxd onestart
 (...)
 + /usr/local/bin/shellinaboxd --user=shellinabox --group=shellinabox
 --port=4200 --background=/var/run/shellinaboxd.pid
 --cert=/usr/local/etc/shellinabox
 # ls /var/run/shel*
 /var/run/shellinaboxd.pid
 
 => The pid file is created.
 
 But your bug report permit me to discover that the pidfile was not
 delete after sending stop command to the rc script (I'm working on a
 patch for this).
 
 Regards,
 
 Olivier
Responsible-Changed-From-To: freebsd-ports-bugs->crees 
Responsible-Changed-By: crees 
Responsible-Changed-When: Sun Dec 4 10:27:01 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 
State-Changed-From-To: feedback->open 
State-Changed-By: crees 
State-Changed-When: Wed Dec 14 19:22:40 UTC 2011 
State-Changed-Why:  
Maintainer has replied 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 
State-Changed-From-To: open->feedback 
State-Changed-By: crees 
State-Changed-When: Wed Dec 14 19:22:57 UTC 2011 
State-Changed-Why:  
I also can't reproduce this, sorry.  Please would you post the output of 
sh -x /usr/local/etc/rc.d/shellinaboxd onestart? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 
State-Changed-From-To: feedback->closed 
State-Changed-By: crees 
State-Changed-When: Thu Dec 22 09:58:51 UTC 2011 
State-Changed-Why:  
Submitter has confirmed this is no longer an issue with RC2; I assume it 
was a local issue.  Either way, it should no longer be a problem. 
Thanks for letting us know! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=162518 
>Unformatted:
