1 | .\" $Id: attach.1,v 1.16 2004-08-11 15:20:17 ghudson Exp $ |
---|
2 | .\" |
---|
3 | .\" Copyright 1997 by the Massachusetts Institute of Technology. |
---|
4 | .\" |
---|
5 | .\" Permission to use, copy, modify, and distribute this |
---|
6 | .\" software and its documentation for any purpose and without |
---|
7 | .\" fee is hereby granted, provided that the above copyright |
---|
8 | .\" notice appear in all copies and that both that copyright |
---|
9 | .\" notice and this permission notice appear in supporting |
---|
10 | .\" documentation, and that the name of M.I.T. not be used in |
---|
11 | .\" advertising or publicity pertaining to distribution of the |
---|
12 | .\" software without specific, written prior permission. |
---|
13 | .\" M.I.T. makes no representations about the suitability of |
---|
14 | .\" this software for any purpose. It is provided "as is" |
---|
15 | .\" without express or implied warranty. |
---|
16 | .\" |
---|
17 | .TH ATTACH 1 |
---|
18 | .SH NAME |
---|
19 | attach \- attach a remote file system to your workstation |
---|
20 | .SH SYNOPSIS |
---|
21 | .TP 8 |
---|
22 | attach |
---|
23 | [-v | -q] [-y | -n] [-g | -a] [-z | -h] [-x | -e] [-N | -S] |
---|
24 | [-w | -r] [-p] [-L] [-O] [-o mountoptions] [-t type] [-m mountpoint] locker ... |
---|
25 | .PP |
---|
26 | .nf |
---|
27 | attach -l \fIfilesystem\fP |
---|
28 | attach [-H \fIhost\fP] |
---|
29 | .fi |
---|
30 | .SH DESCRIPTION |
---|
31 | .I attach |
---|
32 | is a filesystem-independent utility which allows you attach a |
---|
33 | filesystem to a directory hierarchy on your workstation. The following |
---|
34 | filesystems are currently supported: AFS, NFS, and UFS. |
---|
35 | |
---|
36 | Attach looks up \fIfilesystem\fP in |
---|
37 | .BR attach.conf (5) |
---|
38 | or by using |
---|
39 | .BR Hesiod (3) |
---|
40 | to retrieve the file system type, the server host, the name by which |
---|
41 | the file system is known to the server (e.g., an NFS server |
---|
42 | mountpoint), and the default mount point and mode (read-only, |
---|
43 | read-write). The user may also explicitly specify this information, as |
---|
44 | described below under the |
---|
45 | .I --explicit |
---|
46 | option. |
---|
47 | |
---|
48 | By default, |
---|
49 | .I attach |
---|
50 | will attempt to make sure the user is authenticated to the remote |
---|
51 | filesystem, by getting tokens in the appropriate cell for an AFS |
---|
52 | locker, or creating a Kerberos NFS mapping for an NFS locker. |
---|
53 | |
---|
54 | The following arguments to \fIattach\fP modify its behavior. Default |
---|
55 | options are marked as such. Unless otherwise marked, all arguments are |
---|
56 | processed \fIin order\fP. Thus, if a -v option is followed by a -q |
---|
57 | option, the -q option will take precedence (for any lockers that |
---|
58 | appear after the -q on the command line). The long and short forms of |
---|
59 | each option function identically. |
---|
60 | |
---|
61 | If no arguments are given to \fIattach\fP, a list of the currently |
---|
62 | attached filesystems will be printed. |
---|
63 | |
---|
64 | .TP 8 |
---|
65 | .I --verbose (-v) |
---|
66 | Display verbose information about a mounted filesystem, such as the |
---|
67 | AFS path or NFS server and the server's filesystem name, if the attach |
---|
68 | is successful. This is the default. Use of this option automatically |
---|
69 | supresses the --printpath option. |
---|
70 | .TP 8 |
---|
71 | .I --quiet (-q) |
---|
72 | Don't display verbose information. Error messages will still be printed. |
---|
73 | .TP 8 |
---|
74 | .I --printpath (-p) |
---|
75 | \fIattach\fP normally prints a status message on its standard output |
---|
76 | indicating the success or failure of the attach operation. This flag |
---|
77 | causes the pathname of the mounted filesystem to be printed instead. |
---|
78 | This was used by the old "add" aliases. Use of this option |
---|
79 | automatically surpresses the -verbose option. |
---|
80 | .TP 8 |
---|
81 | .I --lookup (-l) |
---|
82 | This option causes \fIattach\fP to look up the filesystem definition |
---|
83 | using either |
---|
84 | .BR attach.conf (5) |
---|
85 | or |
---|
86 | .BR Hesiod (3) |
---|
87 | and print out the definition, but not to actually attach the filesystem. |
---|
88 | .TP 8 |
---|
89 | .I --map (-y) |
---|
90 | Attempt to authenticate the user with Kerberos to the filesystem |
---|
91 | server. The authentication may be necessary in order to have the |
---|
92 | proper access to the filesystem. This is the default. |
---|
93 | .TP 8 |
---|
94 | .I --nomap (-n) |
---|
95 | Do not attempt to authenticate the user to the filesystem server. |
---|
96 | This implicitly invokes the -noremap option. |
---|
97 | .TP 8 |
---|
98 | .I --remap (-g) |
---|
99 | Go ahead and reauthenticate the user even if the filesystem is already |
---|
100 | attached. This is the default. |
---|
101 | .TP 8 |
---|
102 | .I --noremap (-a) |
---|
103 | Don't reauthenticate the user if the filesystem is already attached. |
---|
104 | .TP 8 |
---|
105 | .I --zephyr (-z) |
---|
106 | Subscribe to |
---|
107 | .BR Zephyr (1) |
---|
108 | messages about the server host. This is the default. |
---|
109 | .TP 8 |
---|
110 | .I --nozephyr (-h) |
---|
111 | Don't subscribe to |
---|
112 | .BR Zephyr (1) |
---|
113 | messages about the server host. |
---|
114 | .TP 8 |
---|
115 | .I --readonly (-r), --write (-w) |
---|
116 | Overrides the default access mode for the next filesystem. "-r" |
---|
117 | indicates read-only access, and "-w" indicates write access. These |
---|
118 | options have no effect for AFS filesystems. |
---|
119 | .TP 8 |
---|
120 | .I --mountpoint \fImount-point\fP (-m \fImount-point\fP) |
---|
121 | Overrides the default mount point for the next filesystem. |
---|
122 | .TP 8 |
---|
123 | .I --master (-M) |
---|
124 | Attach the master copy of the locker even if a local copy of the |
---|
125 | locker exists. Without this option, if a symlink exists in |
---|
126 | .B /var/athena/local-validated |
---|
127 | (or the value of local-dir in |
---|
128 | .BR attach.conf (5) |
---|
129 | if set) with the name of the locker, that symlink is copied to the |
---|
130 | mountpoint in place of attaching the locker. |
---|
131 | .TP 8 |
---|
132 | .I --noexplicit (-x) |
---|
133 | Tell \fIattach\fP to interpret the \fIfilesystem\fP as a Hesiod name. |
---|
134 | This is the default. |
---|
135 | .TP 8 |
---|
136 | .I --explicit (-e) |
---|
137 | Change the behavior of \fIattach\fP such that the \fIfilesystem\fP is |
---|
138 | now interpreted as an explicit description (\fIdirectory\fP in the |
---|
139 | case of AFS or \fIhost:directory\fP in the case of NFS) instead of as |
---|
140 | a Hesiod name. This allows arbitrary directories to be attached. When |
---|
141 | this option is used, the default mount point is determined by |
---|
142 | filesystem-specific code, but can be overridden by the -m option. |
---|
143 | .TP 8 |
---|
144 | .I --type \fIfilesystem-type\fP (-t \fIfilesystem-type\fP) |
---|
145 | Used with the |
---|
146 | .I --explicit |
---|
147 | option to tell \fIattach\fP the type of the filesystem that's going to |
---|
148 | be attached. It defaults to NFS. |
---|
149 | .TP 8 |
---|
150 | .I --mountoptions \fIoptions\fP (-o \fIoptions\fP) |
---|
151 | Specify options for the mounting of the filesystem. The options are |
---|
152 | the same as the ones used by |
---|
153 | .BR mount (8)\fP. |
---|
154 | .TP 8 |
---|
155 | .I --nosetuid \fPor\fI -nosuid (-N) |
---|
156 | With this option, \fIattach\fP will mount the filesystem with the |
---|
157 | nosuid option. This causes the kernel not to honor setuid or setgid |
---|
158 | permission in the filesystem. (This option does not have any |
---|
159 | effect with AFS filesystems.) |
---|
160 | .TP 8 |
---|
161 | .I --setuid -suid (-S) |
---|
162 | This option can be used by a trusted user to forcibly mount a |
---|
163 | filesystem without the nosuid option. This can be used to override |
---|
164 | the fact that the system administrator has made an entry such that the |
---|
165 | filesystem would normally be mounted nosuid. |
---|
166 | .TP 8 |
---|
167 | .I --override (-O) |
---|
168 | \fIAttach\fP can be set up so that normal users cannot attach certain |
---|
169 | filsystems. A trusted user can use this option to override these |
---|
170 | restrictions. See |
---|
171 | .BR attach.conf (5) |
---|
172 | for more information. |
---|
173 | .TP 8 |
---|
174 | .I --lock (-L) |
---|
175 | This option tells \fIattach\fP to lock the filesystem so that it cannot |
---|
176 | be unmounted except explicitly by one of the trusted users. This |
---|
177 | command requires the user to be in the trusted users list. |
---|
178 | .TP 8 |
---|
179 | .I --host \fIhostnames\fP (-H \fIhostnames\fP) |
---|
180 | This option causes \fIattach\fP to list all filesystems that are mounted |
---|
181 | from the given \fIhostnames\fP. After this option appears on the |
---|
182 | command line, no more filesystems may be attached; only hostnames may be |
---|
183 | specified. |
---|
184 | .PP |
---|
185 | If the default mount-point for a filesystem (or the mount-point |
---|
186 | specified with the -m option) does not exist, it is created. Any |
---|
187 | directories in the path that do not exist are also created. If a |
---|
188 | directory can't be created, the attach fails. When the filesystem is |
---|
189 | detached, any directories that were created during the attach are |
---|
190 | deleted, if possible. |
---|
191 | |
---|
192 | .SH EXAMPLES |
---|
193 | .nf |
---|
194 | attach -t afs -m /mit/gnu -e /afs/.athena.mit.edu/project/gnu |
---|
195 | .fi |
---|
196 | |
---|
197 | Attach the read-write AFS path to the gnu locker to the mountpoint |
---|
198 | /mit/gnu. |
---|
199 | |
---|
200 | .SH DIAGNOSTICS |
---|
201 | If \fIattach\fP is unable to initalize the locker library, it will |
---|
202 | exist with status 1. If \fIattach\fP encounters a problem attaching a |
---|
203 | locker, it will continue trying to attach any remaining lockers on the |
---|
204 | command line, but eventually exit with status 2. |
---|
205 | |
---|
206 | .SH FILES |
---|
207 | /etc/athena/attach.conf |
---|
208 | .br |
---|
209 | /var/athena/attachtab/ |
---|
210 | .br |
---|
211 | /var/athena/local-validated/ |
---|
212 | |
---|
213 | .SH "SEE ALSO" |
---|
214 | add(1), detach(1), nfsid(1), zinit(1), attach.conf(5) |
---|
215 | |
---|
216 | .SH AUTHORS |
---|
217 | Dan Winship, MIT Information Systems |
---|
218 | .PP |
---|
219 | based on the original attach by |
---|
220 | .br |
---|
221 | Robert French, Project Athena |
---|
222 | .br |
---|
223 | Theodore Ts'o, Project Athena |
---|
224 | .br |
---|
225 | John Carr, Project Athena |
---|
226 | .br |
---|
227 | Richard Basch, Project Athena |
---|
228 | .PP |
---|
229 | Copyright 1988, 1990, 1998 Massachusetts Institute of Technology |
---|