From owner-freebsd-ports-bugs@FreeBSD.ORG Tue Nov 25 17:10:04 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9AF791065676 for ; Tue, 25 Nov 2008 17:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF288FC1A for ; Tue, 25 Nov 2008 17:10:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id mAPHA4Vb026191 for ; Tue, 25 Nov 2008 17:10:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id mAPHA4Uo026190; Tue, 25 Nov 2008 17:10:04 GMT (envelope-from gnats) Resent-Date: Tue, 25 Nov 2008 17:10:04 GMT Resent-Message-Id: <200811251710.mAPHA4Uo026190@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, Till Klampaeckel Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9023A1065677 for ; Tue, 25 Nov 2008 17:03:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 863748FC18 for ; Tue, 25 Nov 2008 17:03:07 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id mAPH372T092735 for ; Tue, 25 Nov 2008 17:03:07 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id mAPH37xt092734; Tue, 25 Nov 2008 17:03:07 GMT (envelope-from nobody) Message-Id: <200811251703.mAPH37xt092734@www.freebsd.org> Date: Tue, 25 Nov 2008 17:03:07 GMT From: Till Klampaeckel To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/129186: Customize the installed denyhosts scripts for FreeBSD X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Nov 2008 17:10:04 -0000 >Number: 129186 >Category: ports >Synopsis: Customize the installed denyhosts scripts for FreeBSD >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: Tue Nov 25 17:10:04 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Till Klampaeckel >Release: 6.3 >Organization: n/a >Environment: FreeBSD XXXXX 7.0-RELEASE-p5 FreeBSD 7.0-RELEASE-p5 #0: Wed Oct 1 07:51:58 UTC 2008 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 >Description: For example, restrict_from_passwd.py lists /sbin/nologin as shell, while on "my" OS it's /usr/sbin/nologin. I think the paths should be customized in there with a post-install task. If I run the script now, I get 0 accounts. After "patching" it, I get: _dhcp _pflogd bin bind daemon games kmem mailnull man news nobody operator pop proxy smmsp sshd tty www This is really a nice to have. :-) >How-To-Repeat: >Fix: --- restricted_from_passwd.py.old 2008-11-25 11:55:23.000000000 -0500 +++ restricted_from_passwd.py 2008-11-25 11:55:32.000000000 -0500 @@ -11,7 +11,7 @@ # ############################################################################ -RESTRICTED_SHELLS = ("/sbin/nologin", +RESTRICTED_SHELLS = ("/usr/sbin/nologin", "/sbin/shutdown", "/sbin/halt") >Release-Note: >Audit-Trail: >Unformatted: