1 .\" $NetBSD: hlfsd.8,v 1.1.1.2 2009/03/20 20:26:55 christos Exp $
4 .\" Copyright (c) 1997-2009 Erez Zadok
5 .\" Copyright (c) 1989 Jan-Simon Pendry
6 .\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine
7 .\" Copyright (c) 1989 The Regents of the University of California.
8 .\" All rights reserved.
10 .\" This code is derived from software contributed to Berkeley by
11 .\" Jan-Simon Pendry at Imperial College, London.
13 .\" Redistribution and use in source and binary forms, with or without
14 .\" modification, are permitted provided that the following conditions
16 .\" 1. Redistributions of source code must retain the above copyright
17 .\" notice, this list of conditions and the following disclaimer.
18 .\" 2. Redistributions in binary form must reproduce the above copyright
19 .\" notice, this list of conditions and the following disclaimer in the
20 .\" documentation and/or other materials provided with the distribution.
21 .\" 3. All advertising materials mentioning features or use of this software
22 .\" must display the following acknowledgment:
23 .\" This product includes software developed by the University of
24 .\" California, Berkeley and its contributors.
25 .\" 4. Neither the name of the University nor the names of its contributors
26 .\" may be used to endorse or promote products derived from this software
27 .\" without specific prior written permission.
29 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
42 .\" File: am-utils/hlfsd/hlfsd.8
44 .\" HLFSD was written at Columbia University Computer Science Department, by
45 .\" Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@smarts.com>
46 .\" It is distributed under the same terms and conditions as AMD.
48 .TH HLFSD 8 "14 September 1993"
50 hlfsd \- home-link file system daemon
58 .BI \-c " cache-interval"
62 .BI \-i " reload-interval"
66 .BI \-o " mount-options"
68 .BI \-x " log-options"
70 .BI \-D " debug-options"
72 .BI \-P " password-file"
80 is a daemon which implements a filesystem containing a symbolic link to
81 subdirectory within a user's home directory, depending on the user
82 which accessed that link. It was primarily designed to redirect
83 incoming mail to users' home directories, so that it can read from
87 operates by mounting itself as an
89 server for the directory containing
93 Lookups within that directory are handled by
95 which uses the password map to determine how to resolve the lookup.
96 The directory will be created if it doesn't already exist. The symbolic link will be to the accessing user's home directory, with
98 appended to it. If not specified,
102 This directory will also be created if it does not already exist.
106 will cause it to shutdown. A SIGHUP will flush the internal
107 caches, and reload the password map. It will also close and
108 reopen the log file, to enable the original log file to be
109 removed or rotated. A SIGUSR1 will cause it to dump its internal
110 table of user IDs and home directories to the file
111 .BR /usr/tmp/hlfsd.dump.XXXXXX .
115 Alternate directory. The name of the directory to which
116 the symbolic link returned by
118 will point, if it cannot access the home directory of the user. This
121 This directory will be created if it doesn't exist. It is expected
122 that either users will read these files, or the system administrators
123 will run a script to resend this "lost mail" to its owner.
125 .BI \-c " cache-interval"
128 will cache the validity of home directories for this interval, in
129 seconds. Entries which have been verified within the last
131 seconds will not be verified again, since the operation could
132 be expensive, and the entries are most likely still valid.
133 After the interval has expired,
135 will re-verify the validity of the user's home directory, and
136 reset the cache time-counter. The default value for
138 is 300 seconds (5 minutes).
141 Force fast startup. This option tells
143 to skip startup-time consistency checks such as existence of mount
144 directory, alternate spool directory, symlink to be hidden under the
145 mount directory, their permissions and validity.
148 Set the special group HLFS_GID to
154 which access the mailboxes of other users) must be setgid HLFS_GID to
155 work properly. The default group is "hlfs". If no group is provided,
156 and there is no group "hlfs", this feature is disabled.
159 Help. Print a brief help message, and exit.
161 .BI \-i " reload-interval"
162 Map-reloading interval. Each
166 will reload the password map.
168 needs the password map for the UIDs and home directory pathnames.
170 schedules a SIGALRM to reload the password maps. A SIGHUP sent to
172 will force it to reload the maps immediately. The default
175 is 900 seconds (15 minutes.)
178 Specify a log file to which
180 will record events. If
184 then the log messages will be sent to the system log daemon by
186 using the LOG_DAEMON facility.
187 This is also the default.
192 will not verify the validity of the symbolic link it will be
193 returning, or that the user's home directory contains
194 sufficient disk-space for spooling. This can speed up
196 at the cost of possibly returning symbolic links to home
197 directories which are not currently accessible or are full.
200 validates the symbolic-link in the background.
203 option overrides the meaning of the
205 option, since no caching is necessary.
207 .BI \-o " mount-options"
208 Mount options. Mount options which
210 will use to mount itself on top of
214 is set to "ro". If the system supports symbolic-link caching, default
215 options are set to "ro,nocache".
219 Outputs the process-id of
221 to standard output where it can be saved into a file.
224 Version. Displays version information to standard error.
226 .BI \-x " log-options"
227 Specify run-time logging options. The options are a comma separated
228 list chosen from: fatal, error, user, warn, info, map, stats, all.
233 to run on systems that cannot turn off the NFS attribute-cache. Use of
234 this option on those systems is discouraged, as it may result in loss
235 or mis-delivery of mail. The option is ignored on systems that can turn
236 off the attribute-cache.
238 .BI \-D " log-options"
239 Select from a variety of debugging options. Prefixing an
240 option with the string
242 reverses the effect of that option. Options are cumulative.
243 The most useful option is
245 Since this option is only used for debugging other options are not
246 documented here. A fuller description is available in the program
247 source. A SIGUSR1 sent to
249 will cause it to dump its internal password map to the file
250 .BR /usr/tmp/hlfsd.dump.XXXXXX .
252 .BI \-P " password-file"
253 Read the user-name, user-id, and home directory information from the file
259 to read the password database. This option allows you to override the
260 default database, and is useful if you want to map users' mail files to a
261 directory other than their home directory. Only the username, uid, and
262 home-directory fields of the file
264 are read and checked. All other fields are ignored. The file
266 must otherwise be compliant with Unix System 7 colon-delimited format
271 directory under which
273 mounts itself and manages the symbolic link
277 default sub-directory in the user's home directory, to which the
279 symbolic link returned by
286 symbolic link returned by
288 points if it is unable to verify the that
289 user's home directory is accessible.
298 .\" .BR automount (8),
304 .IR "HLFSD: Delivering Email to Your $HOME" ,
306 .IR "Proc. LISA-VII, The 7th Usenix System Administration Conference" ,
313 .I "Linux NFS and Automounter Administration"
314 by Erez Zadok, ISBN 0-7821-2739-8, (Sybex, 2001).
316 .I http://www.am-utils.org
318 Erez Zadok <ezk@cs.sunysb.edu>, Computer Science Department, Stony Brook
319 University, Stony Brook, New York, USA.
321 Alexander Dupuy <dupuy@smarts.com>, System Management ARTS,
322 White Plains, New York, USA.
324 Other authors and contributors to am-utils are listed in the
326 file distributed with am-utils.