1- .\" $NetBSD: mount_union.8,v 1.13 2003/02/25 10:35:05 wiz Exp $
1+ .\" $NetBSD: mount_union.8,v 1.14 2003/05/07 05:19:44 fair Exp $
22.\"
33.\" Copyright (c) 1994
44.\" The Regents of the University of California. All rights reserved.
3636.\"
3737.\" @(#)mount_union.8 8.7 (Berkeley) 5/1/95
3838.\"
39- .Dd May 1, 1995
39+ .Dd May 6, 2003
4040.Dt MOUNT_UNION 8
4141.Os
4242.Sh NAME
5151.Sh DESCRIPTION
5252The
5353.Nm
54- command
55- attaches
54+ command attaches
5655.Ar directory
5756above
5857.Ar uniondir
@@ -93,6 +92,10 @@ Hide the lower layer completely in the same way as mounting with
9392To enforce filesystem security, the user mounting the filesystem
9493must be superuser or else have write permission on the mounted-on
9594directory.
95+ In addition, the
96+ .Em vfs.generic.usermount
97+ .Xr sysctl 3
98+ variable must be set to 1 to permit file system mounting by ordinary users.
9699.Pp
97100Filenames are looked up in the upper layer and then in the
98101lower layer.
@@ -102,8 +105,9 @@ in the upper layer, then a
102105directory will be created in the upper layer.
103106It will be owned by the user who originally did the union mount,
104107with mode
105- .Dq rwxrwxrwx
106- (0777) modified by the umask in effect at that time.
108+ .Qq rwxrwxrwx
109+ .Pq 0777
110+ modified by the umask in effect at that time.
107111.Pp
108112If a file exists in the upper layer then there is no way to access
109113a file with the same name in the lower layer.
@@ -151,7 +155,9 @@ mount -t cd9660 -o ro /dev/cd0a /usr/src
151155mount -t union /var/obj /usr/src
152156.Ed
153157.Pp
154- mount the CD-ROM drive
158+ mount the
159+ .Tn CD-ROM
160+ drive
155161.Pa /dev/cd0a
156162on
157163.Pa /usr/src
@@ -160,7 +166,8 @@ and then attaches
160166on top.
161167For most purposes the effect of this is to make the
162168source tree appear writable
163- even though it is stored on a CD-ROM.
169+ even though it is stored on a
170+ .Tn CD-ROM .
164171.Pp
165172The command
166173.Bd -literal -offset indent
@@ -183,7 +190,8 @@ accessible via
183190.Xr fstab 5 ,
184191.Xr fsck_ffs 8 ,
185192.Xr mount 8 ,
186- .Xr mount_null 8
193+ .Xr mount_null 8 ,
194+ .Xr sysctl 8
187195.Sh HISTORY
188196The
189197.Nm
@@ -196,7 +204,7 @@ objects can be done.
196204An attempt to mount a union directory under one which does not
197205have whiteout support will return
198206.Dv EOPNOTSUPP
199- (`` Operation not supported'') .
207+ . Pq Qq Operation not supported .
200208Whiteout support can be added to an existing FFS filesystem
201209by using the
202210.Fl c
0 commit comments