Date: Tue, 27 Aug 2002 14:15:05 +0200 From: Marco Molteni <molter@tin.it> To: FreeBSD-gnats-submit@FreeBSD.org Subject: docs/42076: diskless.8 man page unsafe example Message-ID: <20020827121505.2518.qmail@cobweb.example.org>
next in thread | raw e-mail | index | archive | help
>Number: 42076
>Category: docs
>Synopsis: diskless.8 man page unsafe example
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Aug 27 05:20:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Marco Molteni
>Release: FreeBSD 4.6-RELEASE i386
>Organization:
Citello Networks
>Environment:
System: FreeBSD cobweb.example.org 4.6-RELEASE
>Description:
In the diskless.8 man page there is an example that contradicts the text:
an NFS server which exports a root and /usr partition with appropri-
ate permissions. The rc.diskless{1,2} scripts work with readonly
partitions, as long as root is exported with -maproot=0 so that some
system files can be accessed. As an example, /etc/exports can con-
tain the following lines:
<ROOT> -maproot=0 -alldirs <list of diskless clients>
/usr -alldirs <list of diskless clients>
you see? It says to export the partitions readonly, but the example
exports them read-write! The manpage is the same on stable and current.
>How-To-Repeat:
man diskless
>Fix:
Following patch fixes this. Checked with the various docs in
/usr/share/examples/diskless/
--- diskless.8.orig Fri Aug 16 16:09:16 2002
+++ diskless.8 Fri Aug 16 16:09:55 2002
@@ -101,8 +101,8 @@
.Pa /etc/exports
can contain the following lines:
.Bd -literal -offset indent
-<ROOT> -maproot=0 -alldirs <list of diskless clients>
-/usr -alldirs <list of diskless clients>
+<ROOT> -ro -maproot=0 -alldirs <list of diskless clients>
+/usr -ro -alldirs <list of diskless clients>
.Ed
.Pp
where
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020827121505.2518.qmail>
