.\" format with nroff|troff|groff -man .TH CHECK-PERMISSIONS 1 .fp 5 CW .nr mH 5 .de H0 .nr mH 0 .in 5n \fB\\$1\fP .in 7n .. .de H1 .nr mH 1 .in 7n \fB\\$1\fP .in 9n .. .de H2 .nr mH 2 .in 11n \fB\\$1\fP .in 13n .. .de H3 .nr mH 3 .in 15n \fB\\$1\fP .in 17n .. .de H4 .nr mH 4 .in 19n \fB\\$1\fP .in 21n .. .de OP .nr mH 0 .ie !'\\$1'-' \{ .ds mO \\fB\\-\\$1\\fP .ds mS ,\\0 .\} .el \{ .ds mO \\& .ds mS \\& .\} .ie '\\$2'-' \{ .if !'\\$4'-' .as mO \\0\\fI\\$4\\fP .\} .el \{ .as mO \\*(mS\\fB\\-\\-\\$2\\fP .if !'\\$4'-' .as mO =\\fI\\$4\\fP .\} .in 5n \\*(mO .in 9n .. .de SP .if \\n(mH==2 .in 9n .if \\n(mH==3 .in 13n .if \\n(mH==4 .in 17n .. .de FN .nr mH 0 .in 5n \\$1 \\$2 .in 9n .. .de DS .in +3n .ft 5 .nf .. .de DE .fi .ft R .in -3n .. .SH NAME check\-permissions \- check check permissions on mail rerouting files .SH SYNOPSIS \fBcheck-permissions\fP\ [\ \fIoptions\fP\ ]\ [\fIlogin\fP] .SH DESCRIPTION The check\-permissions script is intended as a migration aid for \fBsendmail\fP(1M)\&. It checks the \fB/etc/mail/sendmail\&.cf\fP file for all configured alias files, and checks the alias files for \fB:include:\fP files\&. It also checks for certain \fB\&.forward\fP files\&. For each file that check\-permissions checks, it verifies that none of the parent directories are group\- or world\-writable\&. If any directories are overly permissive, it is reported\&. Otherwise it reports that no unsafe directories were found\&. .PP As to which \fB\&.forward\fP files are checked, it depends on the arguments included on the command line\&. If no argument is given, the current user's home directory is checked for the presence of a \fB\&.forward\fP file\&. If any arguments are given, they are assumed to be valid logins, and the home directory of each one is checked\&. .PP If the special argument \fBALL\fP is given, the \fBpasswd\fP entry in the \fB/etc/nsswitch\&.conf\fP file is checked, and all password entries that can be obtained through the switch file are checked\&. In large domains, this can be time\-consuming\&. .SH OPERANDS The following operands are supported: .H1 login Checks the home directory for user \fIlogin\fP\&. .H1 ALL Checks the home directory of all users\&. .SH OPTIONS .OP h help flag - Print this help and exit .OP F functions flag - Print out the list of all defined functionsi in this script and exit\&. .OP T trace string fnlist A comma separated list of functions of this script to trace\&. .SH FILES .H1 /etc/mail/sendmail\&.cf Defines environment for sendmail\&. .H1 /etc/mail/aliases ASCII mail aliases file\&. .SH SEE\ ALSO \fBgetent\fP(1M), \fBsendmail\fP(1M), \fBaliases\fP(4)