1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

Import of new port sysutils/no-login, a replacement for /sbin/nologin

that also logs user login attempts to syslog.

[I had to name the directory `no-login' because easy-import complained
that there's already a "nologin" module.]
This commit is contained in:
Donald Burr 1998-07-15 09:56:31 +00:00
parent c06631a7f2
commit eea1e4a351
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=11922
5 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,31 @@
# New ports collection makefile for: nologin
# Version required: 1.0
# Date created: 15 Jul 1998
# Whom: Donald Burr <dburr@FreeBSD.ORG>
#
# $Id$
#
DISTNAME= nologin
PKGNAME= nologin-1.0
CATEGORIES= sysutils
MASTER_SITES= ftp://ftp.xmission.com/pub/users/s/softweyr/pub/
DISTFILES= nologin.c nologin.8
MAINTAINER= dburr@FreeBSD.ORG
DIST_SUBDIR= nologin
NO_WRKSUBDIR= YES
ALL_TARGET= nologin
MAN8= nologin.8
do-extract:
@${MKDIR} ${WRKDIR}
for FILE in ${DISTFILES} ; do ${CP} ${DISTDIR}/${DIST_SUBDIR}/$${FILE} ${WRKDIR}/$${FILE} ; done
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/nologin ${PREFIX}/sbin
${INSTALL_MAN} ${WRKDIR}/nologin.8 ${PREFIX}/man/man8
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
MD5 (nologin/nologin.c) = 2888eccf810cb95a502415659defd298
MD5 (nologin/nologin.8) = 848f37aaa605581e79e15ce8e9993aff

View File

@ -0,0 +1 @@
Refuse a login to a user, and make a note of it in syslog.

View File

@ -0,0 +1,4 @@
This program will refuse login to a user, and make a note of it in the
system logs (syslog). This is suitable for use as a "login shell" for
a user that you want to temporarily deny access to. Just set that user's
shell to /usr/local/sbin/nologin.

View File

@ -0,0 +1,2 @@
sbin/nologin
man/man8/nologin.8.gz