text
stringlengths
0
234
.\" %%%license_end
.\"
.\" modified sun jul 25 11:06:34 1993 by rik faith ([email protected])
.\" corrected mon oct 21 17:47:19 edt 1996 by eric s. raymond ([email protected])
.th nologin 5 2017-09-15 "linux" "linux programmer's manual"
.sh name
nologin \- prevent unprivileged users from logging into the system
.sh description
if the file \fi/etc/nologin\fp exists and is readable,
.br login (1)
will allow access only to root.
other users will
be shown the contents of this file and their logins will be refused.
this provides a simple way of temporarily disabling all unprivileged logins.
.sh files
.i /etc/nologin
.sh see also
.br login (1),
.br shutdown (8)
.sh colophon
this page is part of release 5.13 of the linux
.i man-pages
project.
a description of the project,
information about reporting bugs,
and the latest version of this page,
can be found at
\%https://www.kernel.org/doc/man\-pages/.
.so man3/erfc.3
\" copyright (c) 2013, heinrich schuchardt <[email protected]>
.\"
.\" %%%license_start(verbatim)
.\" permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" permission is granted to copy and distribute modified versions of
.\" this manual under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of
.\" a permission notice identical to this one.
.\"
.\" since the linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date. the author(s) assume.
.\" no responsibility for errors or omissions, or for damages resulting.
.\" from the use of the information contained herein. the author(s) may.
.\" not have taken the same level of care in the production of this.
.\" manual, which is licensed free of charge, as they might when working.
.\" professionally.
.\"
.\" formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\" %%%license_end
.th fanotify_init 2 2021-03-22 "linux" "linux programmer's manual"
.sh name
fanotify_init \- create and initialize fanotify group
.sh synopsis
.nf
.br "#include <fcntl.h>" " /* definition of " o_* " constants */"
.b #include <sys/fanotify.h>
.pp
.bi "int fanotify_init(unsigned int " flags ", unsigned int " event_f_flags );
.fi
.sh description
for an overview of the fanotify api, see
.br fanotify (7).
.pp
.br fanotify_init ()
initializes a new fanotify group and returns a file descriptor for the event
queue associated with the group.
.pp
the file descriptor is used in calls to
.br fanotify_mark (2)
to specify the files, directories, mounts, or filesystems for which fanotify
events shall be created.
these events are received by reading from the file descriptor.
some events are only informative, indicating that a file has been accessed.
other events can be used to determine whether
another application is permitted to access a file or directory.
permission to access filesystem objects is granted by writing to the file
descriptor.
.pp
multiple programs may be using the fanotify interface at the same time to
monitor the same files.
.pp
in the current implementation, the number of fanotify groups per user is
limited to 128.
this limit cannot be overridden.
.pp
calling
.br fanotify_init ()
requires the
.b cap_sys_admin
capability.
this constraint might be relaxed in future versions of the api.
therefore, certain additional capability checks have been implemented as
indicated below.
.pp
the