8960 libefi: import efichar.c for ucs2 support
[unleashed.git] / usr / src / man / man1m / check-permissions.1m
blobd5c86ff0bfda74462cc9f9aa7a4dcba5b94372c2
1 '\" te
2 .\"  Copyright (c) 2003 Sun Microsystems, Inc.  All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH CHECK-PERMISSIONS 1M "Nov 10, 2003"
7 .SH NAME
8 check-permissions \- check permissions on mail rerouting files
9 .SH SYNOPSIS
10 .LP
11 .nf
12 \fB/usr/sbin/check-permissions\fR [\fIlogin\fR]
13 .fi
15 .SH DESCRIPTION
16 .sp
17 .LP
18 The  \fBcheck-permissions\fR script is intended as a migration aid for
19 \fBsendmail\fR(1M). It checks the \fB/etc/mail/sendmail.cf\fR file for all
20 configured alias files, and checks the alias files for \fB:include:\fR files.
21 It also checks for certain \fB\&.forward\fR files. For each file that
22 \fBcheck-permissions\fR checks, it verifies that none of the parent directories
23 are group- or world-writable. If any directories are overly permissive, it is
24 reported. Otherwise it reports that no unsafe directories were found.
25 .sp
26 .LP
27 As to which \fB\&.forward\fR files are checked, it depends on the arguments
28 included on the command line. If no argument is given, the current user's home
29 directory is checked for the presence of a  \fB\&.forward\fR file. If any
30 arguments are given, they are assumed to be valid logins, and the home
31 directory of each one is checked.
32 .sp
33 .LP
34 If the special argument \fBALL\fR is given,  the \fBpasswd\fR entry in the
35 \fB/etc/nsswitch.conf\fR file is checked, and all password entries that can be
36 obtained through the switch file are checked. In large domains, this can be
37 time-consuming.
38 .SH OPERANDS
39 .sp
40 .LP
41 The following operands are supported:
42 .sp
43 .ne 2
44 .na
45 \fB\fIlogin\fR\fR
46 .ad
47 .RS 9n
48 Where \fIlogin\fR is a valid user name, checks the home directory for
49 \fIlogin\fR.
50 .RE
52 .sp
53 .ne 2
54 .na
55 \fB\fBALL\fR\fR
56 .ad
57 .RS 9n
58 Checks the home directory of  \fBall\fR users.
59 .RE
61 .SH FILES
62 .sp
63 .ne 2
64 .na
65 \fB\fB/etc/mail/sendmail.cf\fR\fR
66 .ad
67 .RS 25n
68 Defines environment for  \fBsendmail\fR
69 .RE
71 .sp
72 .ne 2
73 .na
74 \fB\fB/etc/mail/aliases\fR\fR
75 .ad
76 .RS 25n
77 Ascii mail aliases file
78 .RE
80 .SH ATTRIBUTES
81 .sp
82 .LP
83 See \fBattributes\fR(5) for descriptions of the following attributes:
84 .sp
86 .sp
87 .TS
88 box;
89 c | c
90 l | l .
91 ATTRIBUTE TYPE  ATTRIBUTE VALUE
93 Interface Stability     Evolving
94 .TE
96 .SH SEE ALSO
97 .sp
98 .LP
99 \fBgetent\fR(1M), \fBsendmail\fR(1M), \fBaliases\fR(4), \fBattributes\fR(5)