xref: /netbsd-src/share/man/man5/security.conf.5 (revision fdecd6a253f999ae92b139670d9e15cc9df4497c)
1.\"	$NetBSD: security.conf.5,v 1.2 1997/07/01 22:55:26 rat Exp $
2.\"
3.\" Copyright (c) 1996 Matthew R. Green
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
9.\" 1. Redistributions of source code must retain the above copyright
10.\"    notice, this list of conditions and the following disclaimer.
11.\" 2. Redistributions in binary form must reproduce the above copyright
12.\"    notice, this list of conditions and the following disclaimer in the
13.\"    documentation and/or other materials provided with the distribution.
14.\" 3. All advertising materials mentioning features or use of this software
15.\"    must display the following acknowledgement:
16.\"      This product includes software developed by Matthew R. Green for
17.\"      the NetBSD Project.
18.\" 4. The name of the author may not be used to endorse or promote products
19.\"    derived from this software without specific prior written permission.
20.\"
21.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
22.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
23.\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24.\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
25.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
26.\" BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27.\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
28.\" AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
29.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31.\" SUCH DAMAGE.
32.\"
33.Dd December 30, 1996
34.Dt SECURITY.CONF 5
35.Os NetBSD 1.3
36.Sh NAME
37.Nm security.conf
38.Nd daily security check configuration file
39.Sh DESCRIPTION
40The
41.Nm
42file specifies which of the standard
43.Pa /etc/security
44services are performed.  The
45.Pa /etc/security
46script is run, by default, every night from
47.Pa /etc/daily ,
48on a
49.Nx
50system, if configured do to so from
51.Pa /etc/daily.conf .
52.Pp
53The variables described below can be set to "NO" to disable the test:
54.Bl -tag -width check_network
55.It Sy check_passwd
56This checks the
57.Pa /etc/master.passwd
58file for inconsistancies.
59.It Sy check_group
60This checks the
61.Pa /etc/group
62file for inconsistancies.
63.It Sy check_rootdotfiles
64This checks the root users startup files for sane settings of $PATH
65and umask.  This test is not fail safe and any warning generated from
66this should be checked for correctness.
67.It Sy check_ftpusers
68This checks that the correct users are in the
69.Pa /etc/ftpusers
70file.
71.It Sy check_aliases
72This checks for security problems in the
73.Pa /etc/aliases
74file.
75.It Sy check_rhosts
76This checks for system and user rhosts files with "+" in them.
77.It Sy check_homes
78This checks that home directories are owned by the correct user.
79.It Sy check_varmail
80This checks that the correct user owns mail in
81.Pa /var/mail ,
82and that the mail box has the right permissions.
83.It Sy check_nfs
84This checks that the
85.Pa /etc/exports
86file does not export filesystems to the world.
87.It Sy check_devices
88This checks for changes to devices and setuid files.
89.It Sy check_mtree
90This runs
91.Xr mtree 8
92to ensure that the system is installed correctly.
93.It Sy check_changelist
94This updates the list of files in
95.Pa /etc/changelist
96and their backups in
97.Pa /var/backups/file.current
98and
99.Pa /var/backups/file.backup .
100.El
101.Pp
102.Sh FILES
103.Pa /etc/security
104.Pa /etc/security.conf
105.Sh SEE ALSO
106.Xr daily.conf 5
107.Sh HISTORY
108The
109.Nm
110file appeared in
111.Nx 1.3 .
112