Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Nov 2008 17:03:07 GMT
From:      Till Klampaeckel <till@php.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/129186: Customize the installed denyhosts scripts for FreeBSD
Message-ID:  <200811251703.mAPH37xt092734@www.freebsd.org>
Resent-Message-ID: <200811251710.mAPHA4Uo026190@freefall.freebsd.org>

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

>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:



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