Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/nologin/nologin.8
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)nologin.8 8.1 (Berkeley) 6/19/93 | .\" @(#)nologin.8 8.1 (Berkeley) 6/19/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd June 19, 1993 | .Dd April 15, 2020 | ||||
.Dt NOLOGIN 8 | .Dt NOLOGIN 8 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm nologin | .Nm nologin | ||||
.Nd politely refuse a login | .Nd politely refuse a login | ||||
.Sh SYNOPSIS | .Sh SYNOPSIS | ||||
.Nm | .Nm | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
The | The | ||||
.Nm | .Nm | ||||
utility displays a message that an account is not available and | is intended as a replacement shell field for accounts that | ||||
exits non-zero. | |||||
It is intended as a replacement shell field for accounts that | |||||
have been disabled. | have been disabled. | ||||
.Pp | .Pp | ||||
When executed, | |||||
.Nm | |||||
first writes about the login attempt to | |||||
yuripv: I'm late to the party as always, just noticed the MFC commit, but anyway.
This sentence sounds… | |||||
.Xr syslog 3 | |||||
and then a displays a message that an account is not available. | |||||
yuripvUnsubmitted Not Done Inline ActionsErroneous 'a' after 'then'. yuripv: Erroneous 'a' after 'then'. | |||||
.Pp | |||||
To disable all logins, | To disable all logins, | ||||
investigate | investigate | ||||
.Xr nologin 5 . | .Xr nologin 5 . | ||||
.Sh EXIT STATUS | |||||
The | |||||
.Nm | |||||
utility always exits non-zero. | |||||
.Sh EXAMPLES | |||||
Here is a demonstration of executing | |||||
.Nm : | |||||
.Bd -literal -offset 4n | |||||
$ nologin | |||||
This account is currently not available. | |||||
$ tail -n 1 /var/log/messages | |||||
Mar 30 21:53:07 example.org nologin[65992]: Attempted login by beastie on /dev/pts/18 | |||||
.Ed | |||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr login 1 , | .Xr login 1 , | ||||
.Xr nologin 5 | .Xr nologin 5 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Nm | .Nm | ||||
utility appeared in | utility appeared in | ||||
.Bx 4.4 . | .Bx 4.4 . |
I'm late to the party as always, just noticed the MFC commit, but anyway.
This sentence sounds somewhat broken to me, you don't write to a function, rather log something using syslog(3)?