diff options
author | dburr <dburr@FreeBSD.org> | 1998-07-15 17:56:31 +0800 |
---|---|---|
committer | dburr <dburr@FreeBSD.org> | 1998-07-15 17:56:31 +0800 |
commit | 1ca7fbb305773d96ef04efebfa765f7895563320 (patch) | |
tree | 92e08b29092710ee6a5a20af2ebef4118e292d82 /sysutils/no-login | |
parent | c982ace212c3236d0d375ce744873e34da2b7e2b (diff) | |
download | freebsd-ports-gnome-1ca7fbb305773d96ef04efebfa765f7895563320.tar.gz freebsd-ports-gnome-1ca7fbb305773d96ef04efebfa765f7895563320.tar.zst freebsd-ports-gnome-1ca7fbb305773d96ef04efebfa765f7895563320.zip |
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.]
Diffstat (limited to 'sysutils/no-login')
-rw-r--r-- | sysutils/no-login/Makefile | 31 | ||||
-rw-r--r-- | sysutils/no-login/distinfo | 2 | ||||
-rw-r--r-- | sysutils/no-login/pkg-comment | 1 | ||||
-rw-r--r-- | sysutils/no-login/pkg-descr | 4 | ||||
-rw-r--r-- | sysutils/no-login/pkg-plist | 2 |
5 files changed, 40 insertions, 0 deletions
diff --git a/sysutils/no-login/Makefile b/sysutils/no-login/Makefile new file mode 100644 index 000000000000..95ca6479c4f3 --- /dev/null +++ b/sysutils/no-login/Makefile @@ -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> diff --git a/sysutils/no-login/distinfo b/sysutils/no-login/distinfo new file mode 100644 index 000000000000..af656860b8de --- /dev/null +++ b/sysutils/no-login/distinfo @@ -0,0 +1,2 @@ +MD5 (nologin/nologin.c) = 2888eccf810cb95a502415659defd298 +MD5 (nologin/nologin.8) = 848f37aaa605581e79e15ce8e9993aff diff --git a/sysutils/no-login/pkg-comment b/sysutils/no-login/pkg-comment new file mode 100644 index 000000000000..2c477103b116 --- /dev/null +++ b/sysutils/no-login/pkg-comment @@ -0,0 +1 @@ +Refuse a login to a user, and make a note of it in syslog. diff --git a/sysutils/no-login/pkg-descr b/sysutils/no-login/pkg-descr new file mode 100644 index 000000000000..5cddf3ee50aa --- /dev/null +++ b/sysutils/no-login/pkg-descr @@ -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. diff --git a/sysutils/no-login/pkg-plist b/sysutils/no-login/pkg-plist new file mode 100644 index 000000000000..bd1bde2bece9 --- /dev/null +++ b/sysutils/no-login/pkg-plist @@ -0,0 +1,2 @@ +sbin/nologin +man/man8/nologin.8.gz |