1998-08-23 22:07:21 +00:00
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 1997-1998 Erez Zadok
|
|
|
|
.\" Copyright (c) 1989 Jan-Simon Pendry
|
|
|
|
.\" Copyright (c) 1989 Imperial College of Science, Technology & Medicine
|
|
|
|
.\" Copyright (c) 1989 The Regents of the University of California.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to Berkeley by
|
|
|
|
.\" Jan-Simon Pendry at Imperial College, London.
|
|
|
|
.\"
|
|
|
|
.\" Redistribution and use in source and binary forms, with or without
|
|
|
|
.\" modification, are permitted provided that the following conditions
|
|
|
|
.\" are met:
|
|
|
|
.\" 1. Redistributions of source code must retain the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer.
|
|
|
|
.\" 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
.\" notice, this list of conditions and the following disclaimer in the
|
|
|
|
.\" documentation and/or other materials provided with the distribution.
|
|
|
|
.\" 3. All advertising materials mentioning features or use of this software
|
|
|
|
.\" must display the following acknowledgment:
|
|
|
|
.\" This product includes software developed by the University of
|
|
|
|
.\" California, Berkeley and its contributors.
|
|
|
|
.\" 4. Neither the name of the University nor the names of its contributors
|
|
|
|
.\" may be used to endorse or promote products derived from this software
|
|
|
|
.\" without specific prior written permission.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
|
|
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
.\" SUCH DAMAGE.
|
|
|
|
.\"
|
1999-08-18 05:55:22 +00:00
|
|
|
.\" $Id: hlfsd.8,v 1.3 1998/09/12 04:04:58 obrien Exp $
|
1998-08-23 22:07:21 +00:00
|
|
|
.\"
|
|
|
|
.\" HLFSD was written at Columbia University Computer Science Department, by
|
|
|
|
.\" Erez Zadok <ezk@cs.columbia.edu> and Alexander Dupuy <dupuy@smarts.com>
|
|
|
|
.\" It is distributed under the same terms and conditions as AMD.
|
|
|
|
.\"
|
1998-09-12 04:04:59 +00:00
|
|
|
.Dd September 14, 1993
|
|
|
|
.Dt HLFSD 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm hlfsd
|
|
|
|
.Nd home-link file system daemon
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl fhnpvC
|
|
|
|
.Op Fl a Ar alt_dir
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl c Ar cache-interval
|
|
|
|
.Ek
|
|
|
|
.Op Fl g Ar group
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl i Ar reload-interval
|
|
|
|
.Ek
|
|
|
|
.Op Fl l Ar logfile
|
|
|
|
.Bk -words
|
|
|
|
.Op Fl o Ar mount-options
|
|
|
|
.Op Fl x Ar log-options
|
|
|
|
.Op Fl D Ar debug-options
|
|
|
|
.Op Fl P Ar password-file
|
|
|
|
.Ek
|
|
|
|
.Op linkname Op subdir
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
is a daemon which implements a filesystem containing a symbolic link to
|
|
|
|
subdirectory within a user's home directory, depending on the user
|
|
|
|
which accessed that link. It was primarily designed to redirect
|
|
|
|
incoming mail to users' home directories, so that it can read from
|
|
|
|
anywhere.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
operates by mounting itself as an
|
1998-09-12 04:04:59 +00:00
|
|
|
.Tn NFS
|
1998-08-23 22:07:21 +00:00
|
|
|
server for the directory containing
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar linkname ,
|
1998-08-23 22:07:21 +00:00
|
|
|
which defaults to
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa /hlfs/home .
|
1998-08-23 22:07:21 +00:00
|
|
|
Lookups within that directory are handled by
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm ,
|
|
|
|
which uses the password map to determine how to resolve the lookup. The
|
|
|
|
directory will be created if it doesn't already exist. The symbolic link will
|
|
|
|
be to the accessing user's home directory, with
|
|
|
|
.Ar subdir
|
1998-08-23 22:07:21 +00:00
|
|
|
appended to it. If not specified,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar subdir
|
1998-08-23 22:07:21 +00:00
|
|
|
defaults to
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa .hlfsdir .
|
1998-08-23 22:07:21 +00:00
|
|
|
This directory will also be created if it does not already exist.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pp
|
|
|
|
A
|
|
|
|
.Er SIGHUP
|
|
|
|
will flush the internal caches, and reload the password map. It will also
|
|
|
|
close and reopen the log file, to enable the original log file to be removed
|
|
|
|
or rotated. A
|
|
|
|
.Er SIGUSR1
|
|
|
|
will cause it to dump its internal table of user IDs and home directories to
|
|
|
|
the file
|
|
|
|
.Pa /usr/tmp/hlfsd.dump.XXXXXX .
|
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
|
|
|
.It Fl a Ar alt_dir
|
1998-08-23 22:07:21 +00:00
|
|
|
Alternate directory. The name of the directory to which
|
|
|
|
the symbolic link returned by
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will point, if it cannot access the home directory of the user. This
|
|
|
|
defaults to
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa /var/hlfs .
|
1998-08-23 22:07:21 +00:00
|
|
|
This directory will be created if it doesn't exist. It is expected
|
|
|
|
that either users will read these files, or the system administrators
|
1998-09-12 04:04:59 +00:00
|
|
|
will run a script to resend this
|
|
|
|
.Dq lost mail
|
|
|
|
to its owner.
|
|
|
|
.It Fl c Ar cache-interval
|
1998-08-23 22:07:21 +00:00
|
|
|
Caching interval.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will cache the validity of home directories for this interval, in
|
|
|
|
seconds. Entries which have been verified within the last
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar cache-interval
|
1998-08-23 22:07:21 +00:00
|
|
|
seconds will not be verified again, since the operation could
|
|
|
|
be expensive, and the entries are most likely still valid.
|
|
|
|
After the interval has expired,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will re-verify the validity of the user's home directory, and
|
|
|
|
reset the cache time-counter. The default value for
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar cache-interval
|
|
|
|
is 300 seconds
|
|
|
|
.Pq 5 minutes .
|
|
|
|
.It Fl f
|
1998-08-23 22:07:21 +00:00
|
|
|
Force fast startup. This option tells
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
to skip startup-time consistency checks such as existence of mount
|
|
|
|
directory, alternate spool directory, symlink to be hidden under the
|
|
|
|
mount directory, their permissions and validity.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl g Ar group
|
|
|
|
Set the special group
|
|
|
|
.Va HLFS_GID
|
|
|
|
to
|
|
|
|
.Ar group .
|
1998-08-23 22:07:21 +00:00
|
|
|
Programs such as
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ic comsat ,
|
|
|
|
.Pq which access the mailboxes of other users
|
|
|
|
must be setgid
|
|
|
|
.Va HLFS_GID
|
|
|
|
to work properly. The default group is
|
|
|
|
.Dq hlfs .
|
|
|
|
If no group is provided, and there is no group
|
|
|
|
.Dq hlfs ,
|
|
|
|
this feature is disabled.
|
|
|
|
.It Fl h
|
1998-08-23 22:07:21 +00:00
|
|
|
Help. Print a brief help message, and exit.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It i Ar reload-interval
|
1998-08-23 22:07:21 +00:00
|
|
|
Map-reloading interval. Each
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar reload-interval
|
1998-08-23 22:07:21 +00:00
|
|
|
seconds,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will reload the password map.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
needs the password map for the UIDs and home directory pathnames.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
|
|
|
schedules a
|
|
|
|
.Va SIGALRM
|
|
|
|
to reload the password maps. A
|
|
|
|
.Va SIGHUP
|
|
|
|
sent to
|
|
|
|
.Nm
|
|
|
|
will force it to reload the maps immediately. The default value for
|
|
|
|
.Ar reload-interval
|
|
|
|
is 900 seconds
|
|
|
|
.Pq 15 minutes .
|
|
|
|
.It Fl l Ar logfile
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify a log file to which
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will record events. If
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa logfile
|
1998-08-23 22:07:21 +00:00
|
|
|
is the string
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa syslog
|
1998-08-23 22:07:21 +00:00
|
|
|
then the log messages will be sent to the system log daemon by
|
1998-09-12 04:04:59 +00:00
|
|
|
.Xr syslog 3 ,
|
|
|
|
using the
|
|
|
|
.Va LOG_DAEMON
|
|
|
|
facility. This is also the default.
|
|
|
|
.It Fl n
|
1998-08-23 22:07:21 +00:00
|
|
|
No verify.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will not verify the validity of the symbolic link it will be
|
|
|
|
returning, or that the user's home directory contains
|
|
|
|
sufficient disk-space for spooling. This can speed up
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
at the cost of possibly returning symbolic links to home
|
|
|
|
directories which are not currently accessible or are full.
|
|
|
|
By default,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
validates the symbolic-link in the background.
|
1998-09-12 04:04:59 +00:00
|
|
|
The
|
|
|
|
.Fl n
|
1998-08-23 22:07:21 +00:00
|
|
|
option overrides the meaning of the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Fl c
|
1998-08-23 22:07:21 +00:00
|
|
|
option, since no caching is necessary.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl o Ar mount-options
|
1998-08-23 22:07:21 +00:00
|
|
|
Mount options. Mount options which
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will use to mount itself on top of
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa dirname .
|
1998-08-23 22:07:21 +00:00
|
|
|
By default,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar mount-options
|
|
|
|
is set to
|
|
|
|
.Qq ro .
|
|
|
|
If the system supports symbolic-link caching, default
|
|
|
|
options are set to
|
|
|
|
.Qq ro,nocache .
|
|
|
|
.It Fl p
|
|
|
|
Prints
|
|
|
|
.Va PID .
|
1998-08-23 22:07:21 +00:00
|
|
|
Outputs the process-id of
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
to standard output where it can be saved into a file.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl v
|
1998-08-23 22:07:21 +00:00
|
|
|
Version. Displays version information to standard error.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl x Ar log-options
|
1998-08-23 22:07:21 +00:00
|
|
|
Specify run-time logging options. The options are a comma separated
|
|
|
|
list chosen from: fatal, error, user, warn, info, map, stats, all.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl C
|
1998-08-23 22:07:21 +00:00
|
|
|
Force
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
to run on systems that cannot turn off the NFS attribute-cache. Use of
|
|
|
|
this option on those systems is discouraged, as it may result in loss
|
|
|
|
or misdelivery of mail. The option is ignored on systems that can turn
|
|
|
|
off the attribute-cache.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It Fl D Ar log-options
|
1998-08-23 22:07:21 +00:00
|
|
|
Select from a variety of debugging options. Prefixing an
|
|
|
|
option with the string
|
1998-09-12 04:04:59 +00:00
|
|
|
.Qq no
|
1998-08-23 22:07:21 +00:00
|
|
|
reverses the effect of that option. Options are cumulative.
|
|
|
|
The most useful option is
|
1998-09-12 04:04:59 +00:00
|
|
|
.Em all .
|
1998-08-23 22:07:21 +00:00
|
|
|
Since this option is only used for debugging other options are not
|
|
|
|
documented here. A fuller description is available in the program
|
1998-09-12 04:04:59 +00:00
|
|
|
source. A
|
|
|
|
.Va SIGUSR1
|
|
|
|
sent to
|
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will cause it to dump its internal password map to the file
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa /usr/tmp/hlfsd.dump.XXXXXX .
|
|
|
|
.It Fl P Ar password-file
|
1998-08-23 22:07:21 +00:00
|
|
|
Read the user-name, user-id, and home directory information from the file
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar password-file .
|
1998-08-23 22:07:21 +00:00
|
|
|
Normally,
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
will use
|
1998-09-12 04:04:59 +00:00
|
|
|
.Xr getpwent 3
|
1998-08-23 22:07:21 +00:00
|
|
|
to read the password database. This option allows you to override the
|
|
|
|
default database, and is useful if you want to map users' mail files to a
|
|
|
|
directory other than their home directory. Only the username, uid, and
|
|
|
|
home-directory fields of the file
|
1998-09-12 04:04:59 +00:00
|
|
|
.Ar password-file
|
1998-08-23 22:07:21 +00:00
|
|
|
are read and checked. All other fields are ignored. The file
|
|
|
|
.I password-file
|
1998-09-12 04:04:59 +00:00
|
|
|
must be compliant with
|
|
|
|
.Ux
|
|
|
|
System 7 colon-delimited format
|
1999-08-18 05:55:22 +00:00
|
|
|
.Xr passwd 5 .
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width /axx
|
|
|
|
.It Pa /hlfs
|
1998-08-23 22:07:21 +00:00
|
|
|
directory under which
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
mounts itself and manages the symbolic link
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa home .
|
|
|
|
.It Pa .hlfsdir
|
1998-08-23 22:07:21 +00:00
|
|
|
default sub-directory in the user's home directory, to which the
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa home
|
1998-08-23 22:07:21 +00:00
|
|
|
symbolic link returned by
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
points.
|
1998-09-12 04:04:59 +00:00
|
|
|
.It /var/hlfs
|
1998-08-23 22:07:21 +00:00
|
|
|
directory to which
|
1998-09-12 04:04:59 +00:00
|
|
|
.Pa home
|
1998-08-23 22:07:21 +00:00
|
|
|
symbolic link returned by
|
1998-09-12 04:04:59 +00:00
|
|
|
.Nm
|
1998-08-23 22:07:21 +00:00
|
|
|
points if it is unable to verify the that
|
|
|
|
user's home directory is accessible.
|
1998-09-12 04:04:59 +00:00
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mail 1 ,
|
|
|
|
.Xr getgrent 3 ,
|
|
|
|
.Xr getpwent 3 ,
|
|
|
|
.Xr mtab 5 ,
|
|
|
|
.Xr passwd 5 ,
|
|
|
|
.Xr amd 8 ,
|
|
|
|
.Xr automount 8 ,
|
|
|
|
.Xr cron 8 ,
|
|
|
|
.Xr mount 8 ,
|
|
|
|
.Xr sendmail 8 ,
|
|
|
|
.Xr umount 8
|
|
|
|
.Rs
|
|
|
|
.%T HLFSD: Delivering Email to Your $HOME
|
|
|
|
.%B Proc. LISA-VII, The 7th Usenix System Administration Conference
|
|
|
|
.%D November 1993
|
|
|
|
.Re
|
|
|
|
.Sh AUTHORS
|
|
|
|
.An Erez Zadok Aq ezk@cs.columbia.edu ,
|
|
|
|
Department of Computer Science, Columbia University,
|
|
|
|
New York, USA.
|
|
|
|
.Pp
|
|
|
|
.An Alexander Dupuy Aq dupuy@smarts.com ,
|
|
|
|
System Management ARTS, White Plains, New York, USA.
|
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility appeared in
|
|
|
|
.Fx 3.0 .
|