1 | .\" $Id: detach.1,v 1.5 1992-01-06 15:54:11 probe Exp $ |
---|
2 | .\" |
---|
3 | .TH DETACH 1 "1 July 1991" |
---|
4 | .ds ]W MIT Project Athena |
---|
5 | .SH NAME |
---|
6 | detach \- detach a remote file system from your workstation |
---|
7 | .SH SYNOPSIS |
---|
8 | .nf |
---|
9 | detach [ options ] filesystem or mountpoint ... |
---|
10 | detach -a [ options ] |
---|
11 | .SH DESCRIPTION |
---|
12 | |
---|
13 | \fIDetach\fP performs the appropriate device-dependent operations to |
---|
14 | disassociate a filesystem which was attached using \fIattach\fP(1) |
---|
15 | from the workstation. |
---|
16 | |
---|
17 | The second form is used to detach all attached filesystems from the |
---|
18 | workstation. This is typically run when the workstation |
---|
19 | deactivates, so as to flush all user mounted filesystems from the |
---|
20 | workstation. |
---|
21 | |
---|
22 | The following options are available in \fIdetach\fP: |
---|
23 | |
---|
24 | .IP "-verbose or -v" |
---|
25 | Display verbose information about the success of the detach. This is |
---|
26 | the default. |
---|
27 | .IP "-quiet or -q" |
---|
28 | Don't display verbose information. |
---|
29 | .IP "-all or -a" |
---|
30 | Attempt to detach all filesystems which had been attached using the |
---|
31 | \fIattach\fP command. |
---|
32 | .IP "-debug or -d" |
---|
33 | Print debugging information. This will not normally be useful to users. |
---|
34 | .IP "-unmap or -y" |
---|
35 | Attempt to remove authentication for the user from the filesystem |
---|
36 | server. The authentication will be removed even if the detach fails. |
---|
37 | This is the default. |
---|
38 | .IP "-nomap or -n" |
---|
39 | Do not attempt to remove authentication for the user from the |
---|
40 | filesystem server. |
---|
41 | .IP "-zephyr or -z" |
---|
42 | Remove \fIZephyr\fP subscription information about the server host. |
---|
43 | .IP "-nozephyr or -h" |
---|
44 | Don't remove \fIZephyr\fP subscription information about the server host. |
---|
45 | .IP "-type \fIfilesystem-type\fP or -t \fIfilesystem-type\fP" |
---|
46 | Used with the -all option to detach all filesystems of a particular |
---|
47 | type. If not specified, the -all option will detach all filesystems. |
---|
48 | .IP "-explicit or -e" |
---|
49 | Change the behavior of \fIdetach\fP such that the \fIfilesystem\fP is |
---|
50 | now interpreted as \fIhost:directory\fP (in the case of NFS) or |
---|
51 | \fIhost:pack\fP (in the case of RVD) instead of as a Hesiod name. |
---|
52 | Type -type option can be used to specify the filesystem type. |
---|
53 | .IP "-noexplicit or -x" |
---|
54 | Tell \fIdetach\fP to interpret the \fIfilesystem\fP as a Hesiod name. |
---|
55 | This is the default. |
---|
56 | .IP "-force or -f" |
---|
57 | Ordinarily, \fIdetach\fP will not attempt to detach a filesystem which |
---|
58 | it believes it thinks is being attached or detached by another |
---|
59 | process. This flag overrides this behavior and \fIforces\fP the |
---|
60 | filesystem to be detached. This option can be dangerous if used |
---|
61 | indiscriminately. |
---|
62 | .IP "-override or -O" |
---|
63 | This option allows the trusted users to force a filesystem to be |
---|
64 | detached, even if it was attached by another user or locked. |
---|
65 | .IP "-host \fIhost\fP or -H \fIhost\fP" |
---|
66 | Requests detach to detach all remote filesystems whose fileserver |
---|
67 | matches the specified host. |
---|
68 | .IP "-user \fIusername\fP or -U \fIusername\fP" |
---|
69 | Trusted users may specify that the \fIdetach\fP command be run on behalf |
---|
70 | of the specified user. |
---|
71 | .IP "-clean or -C" |
---|
72 | This option indicates that the specified filesystems should be detached |
---|
73 | if they are not wanted by anyone who is in \fI/etc/passwd\fP. |
---|
74 | .IP "-lint or -L" |
---|
75 | This option indicates that \fIdetach\fP should delete any malformed |
---|
76 | entries in the \fIattachtab\fP file. |
---|
77 | |
---|
78 | .PP |
---|
79 | The first thing \fIdetach\fP does is to attempt to read in |
---|
80 | /etc/athena/attach.conf, which can be used by the system administrator to |
---|
81 | customize the behavior of \fIattach\fP and \fIdetach\fP. See |
---|
82 | \fIattach.conf(5)\fP for more information. |
---|
83 | |
---|
84 | .SH DIAGNOSTICS |
---|
85 | |
---|
86 | If \fIdetach\fP is executed with only a single |
---|
87 | filesystem argument, the exit status will be one of the following: |
---|
88 | .TP 5 |
---|
89 | 0 |
---|
90 | No error encountered. |
---|
91 | .TP 5 |
---|
92 | 1 |
---|
93 | Bad arguments. |
---|
94 | .TP 5 |
---|
95 | 3 |
---|
96 | Internal fatal error. |
---|
97 | .TP 5 |
---|
98 | 10 |
---|
99 | Keberos failure. |
---|
100 | .TP 5 |
---|
101 | 11 |
---|
102 | Host communication failure. |
---|
103 | .TP 5 |
---|
104 | 12 |
---|
105 | Authentication failure. |
---|
106 | .TP 5 |
---|
107 | 13 |
---|
108 | No reserved ports available. |
---|
109 | .PP |
---|
110 | .TP 5 |
---|
111 | 20 |
---|
112 | Filesystem not attached. |
---|
113 | .TP 5 |
---|
114 | 21 |
---|
115 | Filesystem already in use by another \fIdetach\fP process. |
---|
116 | .PP |
---|
117 | If more than one filesystem argument is specified (or \fIdetach\fP is |
---|
118 | executed with the -a option), the exit status can be either 0, 1, or 3 |
---|
119 | as listed above, or: |
---|
120 | .TP 5 |
---|
121 | 2 |
---|
122 | Something went wrong with one of the filesystems. |
---|
123 | .PP |
---|
124 | If an error is encountered while manipulating one filesystem in the |
---|
125 | list, \fIdetach\fP continues with the other filesystems and returns |
---|
126 | the exit status 2 after attempting to detach all the other filesystems. |
---|
127 | |
---|
128 | .SH NOTE |
---|
129 | The programs \fIattach(1)\fP, \fIdetach(1)\fP, \fInfsid(1)\fP, and |
---|
130 | \fIzinit(8)\fP are all really the same program. Typically |
---|
131 | \fIdetach(1)\fP, \fInfsid(1)\fP and \fIzinit(8)\fP are links to |
---|
132 | \fIattach\fP. Argv[0] is used to determine which one of the four |
---|
133 | programs are run. This may be overridden by specifying -P |
---|
134 | \fIprogname\fP, where \fIprogname\fP should be one of the above four |
---|
135 | program names. |
---|
136 | |
---|
137 | .SH FILES |
---|
138 | /usr/tmp/attachtab |
---|
139 | .br |
---|
140 | /tmp/attach.\fIfilesystem\fP |
---|
141 | |
---|
142 | .SH "SEE ALSO" |
---|
143 | |
---|
144 | attach(1), nfsid(1), zinit(8), zephyr(1), hesiod(3) |
---|
145 | .br |
---|
146 | `Hesiod - Project Athena Technical Plan -- Name Service' |
---|
147 | .br |
---|
148 | `Hesiod Applications Programmers' Guide' |
---|
149 | .br |
---|
150 | `Hesiod Operations and Maintenance Guide' |
---|
151 | |
---|
152 | .SH AUTHOR |
---|
153 | Robert French, Project Athena |
---|
154 | .br |
---|
155 | Copyright 1988, Massachusetts Institute of Technology |
---|
156 | |
---|
157 | .SH BUGS |
---|