Date: Thu, 5 Oct 2006 22:03:04 -0700 (PDT) From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/104040: shells/bash lacks support for rbash Message-ID: <20061006050304.AF8801FA037@icarus.home.lan> Resent-Message-ID: <200610060510.k965AERW062248@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061006050304.AF8801FA037>