a /etc/security services are performed. The
a /etc/security script is run, by default, every night from
a /etc/daily , on a .Nx system, if configured do to so from
a /etc/daily.conf .
p The variables described below can be set to "NO" to disable the test: l -tag -width check_network t Sy check_passwd This checks the
a /etc/master.passwd file for inconsistancies. t Sy check_group This checks the
a /etc/group file for inconsistancies. t Sy check_rootdotfiles This checks the root users startup files for sane settings of $PATH and umask. This test is not fail safe and any warning generated from this should be checked for correctness. t Sy check_ftpusers This checks that the correct users are in the
a /etc/ftpusers file. t Sy check_aliases This checks for security problems in the
a /etc/mail/aliases file. For backward compatibility,
a /etc/aliases will be checked as well if exists. t Sy check_rhosts This checks for system and user rhosts files with "+" in them. t Sy check_homes This checks that home directories are owned by the correct user. t Sy check_varmail This checks that the correct user owns mail in
a /var/mail , and that the mail box has the right permissions. t Sy check_nfs This checks that the
a /etc/exports file does not export filesystems to the world. t Sy check_devices This checks for changes to devices and setuid files. t Sy check_mtree This runs .Xr mtree 8 to ensure that the system is installed correctly. t Sy check_disklabels Backup text copies of the disklabels of available disk drives into
a /var/backups/disklabel.XXX , and display any differences in those and the previous copies as per .Sy check_changelist below. t Sy check_changelist This updates the list of files in
a /etc/changelist and their backups in
a /var/backups/file.current and
a /var/backups/file.backup , and displays any differences found. t Sy run_skeyaudit The .Xr skeyaudit 1 program checks the S/Key database and informs users of S/Keys that are about to expire. .El
p The variables described below can be set to modify the tests: l -tag -width check_network t Sy max_loginlen If .Sy check_passwd is enabled, this determines the maximum permitted length of login names. .El
p .Sh FILES l -tag -width /etc/security.local -compact t Pa /etc/security daily security check script t Pa /etc/security.conf daily security check configuration t Pa /etc/security.local local site additions to
a /etc/security .El .Sh SEE ALSO .Xr daily.conf 5 .Sh HISTORY The .Nm file appeared in .Nx 1.3 . The .Sy check_disklabels functionality was added in .Nx 1.4 .