]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sbin/fsirand/fsirand.8
This commit was generated by cvs2svn to compensate for changes in r93787,
[FreeBSD/FreeBSD.git] / sbin / fsirand / fsirand.8
1 .\" Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
2 .\" All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgment:
14 .\"     This product includes software developed by Todd C. Miller.
15 .\" 4. The name of the author may not be used to endorse or promote products
16 .\"    derived from this software without specific prior written permission.
17 .\"
18 .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
19 .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
20 .\" AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
21 .\" THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
22 .\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
23 .\" PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
24 .\" OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
27 .\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 .\"
29 .\"     $OpenBSD: fsirand.8,v 1.6 1997/02/23 03:58:26 millert Exp $
30 .\" $FreeBSD$
31 .\"
32 .Dd January 25, 1997
33 .Dt FSIRAND 8
34 .Os
35 .Sh NAME
36 .Nm fsirand
37 .Nd randomize inode generation numbers
38 .Sh SYNOPSIS
39 .Nm
40 .Op Fl b
41 .Op Fl f
42 .Op Fl p
43 .Ar special
44 .Op Ar "special ..."
45 .Sh DESCRIPTION
46 The
47 .Nm
48 command installs random generation numbers on all the inodes for
49 each filesystem specified on the command line by
50 .Ar special .
51 This increases the security of NFS-exported filesystems by making
52 it difficult to ``guess'' filehandles.
53 .Pp
54 .Em Note Ns :
55 .Xr newfs 8
56 now does the equivalent of
57 .Nm
58 itself so it is no longer necessary to
59 run
60 .Nm
61 by hand on a new filesystem.  It is only used to
62 re-randomize or report on an existing filesystem.
63 .Pp
64 .Nm Fsirand
65 should only be used on an unmounted filesystem that
66 has been checked with
67 .Xr fsck 8
68 or a filesystem that is mounted read-only.
69 .Nm Fsirand
70 may be used on the root filesystem in single-user mode
71 but the system should be rebooted via ``reboot -n'' afterwards.
72 .Sh OPTIONS
73 .Bl -tag -width indent
74 The available options are as follows:
75 .It Fl b
76 Use the default block size (usually 512 bytes) instead
77 of the value gleaned from the disklabel.
78 .It Fl f
79 Force
80 .Nm
81 to run even if the filesystem on
82 .Ar special
83 is not marked as clean.
84 .It Fl p
85 Print the current generation numbers for all inodes instead of
86 generating new ones.
87 .El
88 .Sh CAVEATS
89 Since
90 .Nm
91 allocates enough memory to hold all the inodes in
92 a given cylinder group it may use a large amount
93 of memory for large disks with few cylinder groups.
94 .Sh SEE ALSO
95 .Xr fs 5 ,
96 .Xr fsck 8 ,
97 .Xr newfs 8
98 .Sh HISTORY
99 The
100 .Nm
101 command appeared in SunOS 3.x.
102 .Pp
103 This version of
104 .Nm
105 first appeared in
106 .Ox 2.1 .
107 .Pp
108 A
109 .Fx
110 version first appeared in
111 .Fx 2.2.5 .
112 .Sh AUTHORS
113 .An Todd C. Miller Aq Todd.Miller@courtesan.com