]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/mount_hpfs/mount_hpfs.8
If a directory is world-writable or is not owned by root, skip it
[FreeBSD/FreeBSD.git] / sbin / mount_hpfs / mount_hpfs.8
1 .\"
2 .\" Copyright (c) 1993,1994 Christopher G. Demetriou
3 .\" Copyright (c) 1999 Semen Ustimenko (semenu@FreeBSD.org)
4 .\" All rights reserved.
5 .\"
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
8 .\" are met:
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\"    notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\"    notice, this list of conditions and the following disclaimer in the
13 .\"    documentation and/or other materials provided with the distribution.
14 .\" 3. All advertising materials mentioning features or use of this software
15 .\"    must display the following acknowledgment:
16 .\"      This product includes software developed by Christopher G. Demetriou.
17 .\" 3. The name of the author may not be used to endorse or promote products
18 .\"    derived from this software without specific prior written permission
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
21 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
22 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
23 .\" IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
24 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
25 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
29 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 .\"
31 .\" $FreeBSD$
32 .\"
33 .Dd May 20, 1999
34 .Dt MOUNT_HPFS 8
35 .Os FreeBSD
36 .Sh NAME
37 .Nm mount_hpfs
38 .Nd mount an HPFS file system
39 .Sh SYNOPSIS
40 .Nm mount_hpfs
41 .Op Fl o Ar options
42 .Op Fl u Ar uid
43 .Op Fl g Ar gid
44 .Op Fl m Ar mask
45 .Pa special
46 .Pa node
47 .Sh DESCRIPTION
48 The
49 .Nm
50 command attaches the HPFS filesystem residing on the device
51 .Pa special
52 to the global filesystem namespace at the location
53 indicated by
54 .Pa node .
55 This command is normally executed by
56 .Xr mount 8
57 at boot time, but can be used by any user to mount an
58 HPFS file system on any directory that they own (provided,
59 of course, that they have appropriate access to the device that
60 contains the file system).
61 .Pp
62 The options are as follows:
63 .Bl -tag -width Ds
64 .It Fl u Ar uid
65 Set the owner of the files in the file system to
66 .Ar uid .
67 The default owner is the owner of the directory
68 on which the file system is being mounted.
69 .It Fl g Ar gid
70 Set the group of the files in the file system to
71 .Ar gid .
72 The default group is the group of the directory
73 on which the file system is being mounted.
74 .It Fl m Ar mask
75 Specify the maximum file permissions for files
76 in the file system.
77 .El
78 .Sh EXAMPLES
79 To mount an hpfs volume located in /dev/wd1s1:
80 .Bd -literal -offset indent
81 # mount_hpfs /dev/wd1s1 /mnt
82 .Ed
83 .Pp
84 .Sh WRITING
85 There is limited writing ability and it is not well-tested.
86 It is strongly recomended to mount readonly!
87 .Sh SEE ALSO
88 .Xr mount 2 ,
89 .Xr unmount 2 ,
90 .Xr fstab 5 ,
91 .Xr mount 8
92 .Sh HISTORY
93 The
94 .Nm
95 first appered in FreeBSD 3.0
96 .Sh AUTHOR
97 HPFS kernel implementation,
98 .Nm
99 and manual were written by Semen Ustimenko <semenu@FreeBSD.org>.