View | Details | Raw Unified | Return to bug 19755
Collapse All | Expand All

(-)nologin/nologin.8 (+17 lines)
Lines 46-51 Link Here
46
exits non-zero.
46
exits non-zero.
47
It is intended as a replacement shell field for accounts that
47
It is intended as a replacement shell field for accounts that
48
have been disabled.
48
have been disabled.
49
.Pp
50
.Nm Nologin
51
first looks in the user's home directory for 
52
.Pa ~/.nologin
53
and displays its contents before exiting.  If that file does
54
not exist or is not readable, 
55
.Nm 
56
will look in
57
.Pa /etc/nologin
58
for the message.  Finally, if no suitable message is found, the
59
text "This account is currently not available." is displayed.
60
.Sh FILES
61
.Bl -tag -width /etc/nologin -compact
62
.It Pa ~/.nologin
63
User specific warning message
64
.It Pa /etc/nologin
65
System wide warning message
49
.Sh SEE ALSO
66
.Sh SEE ALSO
50
.Xr login 1 ,
67
.Xr login 1 ,
51
.Xr nologin 5 .
68
.Xr nologin 5 .
(-)nologin/nologin.sh (-1 / +8 lines)
Lines 35-39 Link Here
35
# $FreeBSD: src/sbin/nologin/nologin.sh,v 1.4 1999/08/28 00:13:57 peter Exp $
35
# $FreeBSD: src/sbin/nologin/nologin.sh,v 1.4 1999/08/28 00:13:57 peter Exp $
36
#
36
#
37
37
38
echo 'This account is currently not available.'
38
if [ -r ~/.nologin ]; then
39
    cat ~/.nologin
40
elif [ -r /etc/nologin ]; then
41
    cat /etc/nlogin
42
else
43
    echo 'This account is currently not available.'
44
fi
45
39
exit 1
46
exit 1

Return to bug 19755