|
1 '\" te |
|
2 .\" Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. |
|
3 .TH check-permissions 1M "10 Nov 2003" "SunOS 5.12" "System Administration Commands" |
|
4 .SH NAME |
|
5 check-permissions \- check permissions on mail rerouting files |
|
6 .SH SYNOPSIS |
|
7 .LP |
|
8 .nf |
|
9 \fB/usr/sbin/check-permissions\fR [\fIlogin\fR] |
|
10 .fi |
|
11 |
|
12 .SH DESCRIPTION |
|
13 .sp |
|
14 .LP |
|
15 The \fBcheck-permissions\fR script is intended as a migration aid for \fBsendmail\fR(1M). It checks the \fB/etc/mail/sendmail.cf\fR file for all configured alias files, and checks the alias files for \fB:include:\fR files. It also checks for certain \fB\&.forward\fR files. For each file that \fBcheck-permissions\fR 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. |
|
16 .sp |
|
17 .LP |
|
18 As to which \fB\&.forward\fR 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\fR file. If any arguments are given, they are assumed to be valid logins, and the home directory of each one is checked. |
|
19 .sp |
|
20 .LP |
|
21 If the special argument \fBALL\fR is given, the \fBpasswd\fR entry in the \fB/etc/nsswitch.conf\fR 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. |
|
22 .SH OPERANDS |
|
23 .sp |
|
24 .LP |
|
25 The following operands are supported: |
|
26 .sp |
|
27 .ne 2 |
|
28 .mk |
|
29 .na |
|
30 \fB\fIlogin\fR\fR |
|
31 .ad |
|
32 .RS 9n |
|
33 .rt |
|
34 Where \fIlogin\fR is a valid user name, checks the home directory for \fIlogin\fR. |
|
35 .RE |
|
36 |
|
37 .sp |
|
38 .ne 2 |
|
39 .mk |
|
40 .na |
|
41 \fB\fBALL\fR\fR |
|
42 .ad |
|
43 .RS 9n |
|
44 .rt |
|
45 Checks the home directory of \fBall\fR users. |
|
46 .RE |
|
47 |
|
48 .SH FILES |
|
49 .sp |
|
50 .ne 2 |
|
51 .mk |
|
52 .na |
|
53 \fB\fB/etc/mail/sendmail.cf\fR\fR |
|
54 .ad |
|
55 .RS 25n |
|
56 .rt |
|
57 Defines environment for \fBsendmail\fR |
|
58 .RE |
|
59 |
|
60 .sp |
|
61 .ne 2 |
|
62 .mk |
|
63 .na |
|
64 \fB\fB/etc/mail/aliases\fR\fR |
|
65 .ad |
|
66 .RS 25n |
|
67 .rt |
|
68 Ascii mail aliases file |
|
69 .RE |
|
70 |
|
71 .SH ATTRIBUTES |
|
72 .sp |
|
73 .LP |
|
74 See \fBattributes\fR(5) for descriptions of the following attributes: |
|
75 .sp |
|
76 |
|
77 .sp |
|
78 .TS |
|
79 tab() box; |
|
80 cw(2.75i) |cw(2.75i) |
|
81 lw(2.75i) |lw(2.75i) |
|
82 . |
|
83 ATTRIBUTE TYPEATTRIBUTE VALUE |
|
84 _ |
|
85 Availabilityservice/network/smtp/sendmail |
|
86 _ |
|
87 Interface StabilityCommitted |
|
88 .TE |
|
89 |
|
90 .SH SEE ALSO |
|
91 .sp |
|
92 .LP |
|
93 \fBgetent\fR(1M), \fBsendmail\fR(1M), \fBaliases\fR(4), \fBattributes\fR(5) |