FreeBSD Bugzilla – Attachment 9692 Details for
Bug 19755
nologin not configurable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.25 KB, created by
James howard
on 2000-07-07 17:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
James howard
Created:
2000-07-07 17:30:01 UTC
Size:
1.25 KB
patch
obsolete
>diff -u nologin.orig/nologin.8 nologin/nologin.8 >--- nologin.orig/nologin.8 Thu Jul 6 22:58:19 2000 >+++ nologin/nologin.8 Thu Jul 6 22:58:00 2000 >@@ -46,6 +46,23 @@ > exits non-zero. > It is intended as a replacement shell field for accounts that > have been disabled. >+.Pp >+.Nm Nologin >+first looks in the user's home directory for >+.Pa ~/.nologin >+and displays its contents before exiting. If that file does >+not exist or is not readable, >+.Nm >+will look in >+.Pa /etc/nologin >+for the message. Finally, if no suitable message is found, the >+text "This account is currently not available." is displayed. >+.Sh FILES >+.Bl -tag -width /etc/nologin -compact >+.It Pa ~/.nologin >+User specific warning message >+.It Pa /etc/nologin >+System wide warning message > .Sh SEE ALSO > .Xr login 1 , > .Xr nologin 5 . >diff -u nologin.orig/nologin.sh nologin/nologin.sh >--- nologin.orig/nologin.sh Thu Jul 6 22:58:19 2000 >+++ nologin/nologin.sh Thu Jul 6 22:53:20 2000 >@@ -35,5 +35,12 @@ > # $FreeBSD: src/sbin/nologin/nologin.sh,v 1.4 1999/08/28 00:13:57 peter Exp $ > # > >-echo 'This account is currently not available.' >+if [ -r ~/.nologin ]; then >+ cat ~/.nologin >+elif [ -r /etc/nologin ]; then >+ cat /etc/nlogin >+else >+ echo 'This account is currently not available.' >+fi >+ > exit 1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19755
: 9692