From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Oct 6 05:10:15 2006 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EEE5A16A4CE for ; Fri, 6 Oct 2006 05:10:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6024543D49 for ; Fri, 6 Oct 2006 05:10:14 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k965AEE0062249 for ; Fri, 6 Oct 2006 05:10:14 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k965AERW062248; Fri, 6 Oct 2006 05:10:14 GMT (envelope-from gnats) Resent-Date: Fri, 6 Oct 2006 05:10:14 GMT Resent-Message-Id: <200610060510.k965AERW062248@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeremy Chadwick Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4BF4E16A403 for ; Fri, 6 Oct 2006 05:03:06 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from alnrmhc11.comcast.net (alnrmhc11.comcast.net [206.18.177.51]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B9343D46 for ; Fri, 6 Oct 2006 05:03:05 +0000 (GMT) (envelope-from jdc@koitsu.dyndns.org) Received: from icarus.home.lan (c-67-174-220-97.hsd1.ca.comcast.net[67.174.220.97]) by comcast.net (alnrmhc11) with ESMTP id <20061006050305b11008b2oae>; Fri, 6 Oct 2006 05:03:05 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id AF8801FA037; Thu, 5 Oct 2006 22:03:04 -0700 (PDT) Message-Id: <20061006050304.AF8801FA037@icarus.home.lan> Date: Thu, 5 Oct 2006 22:03:04 -0700 (PDT) From: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/104040: shells/bash lacks support for rbash X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jeremy Chadwick List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2006 05:10:15 -0000 >Number: 104040 >Category: ports >Synopsis: shells/bash lacks support for rbash >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 06 05:10:13 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jeremy Chadwick >Release: FreeBSD 6.2-PRERELEASE i386 >Organization: Parodius Networking >Environment: System: FreeBSD icarus.home.lan 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Mon Oct 2 10:20:50 PDT 2006 root@icarus.home.lan:/usr/obj/usr/src/sys/ICARUS i386 >Description: While working on setting up a restricted shell on one of my home machines, I found that the bash port doesn't have any framework to create PREFIX/bin/rbash. Since one cannot set a users' shell in passwd to "/usr/local/bin/bash -r", this does pose a problem. Solution is obvious: just ln -s or ln bash to rbash. But it would be great if the port could do this, as well as update /etc/shells to reflect support for rbash. >How-To-Repeat: n/a >Fix: I'd propose adding something called WITH_RBASH which would make a hardlink for rbash, and of course track it in the package list so it gets removed on pkg_delete. Same goes for updating /etc/shells when the port with rbash support is added and removed. Either that or one could just make the port do this by default and go with WITHOUT_RBASH, but I think *most* people won't use this feature, so I'm voting for WITH_RBASH. :-) Thanks! >Release-Note: >Audit-Trail: >Unformatted: