Date: Fri, 16 Aug 2002 16:15:04 +0200 From: Marco Molteni <molter@tin.it> To: freebsd-doc@freebsd.org Subject: diskless.8 manpage unsafe example Message-ID: <20020816141504.33143.qmail@cobweb.example.org>
index | next in thread | raw e-mail
[Please keep me in the CC list as I am not subscribed to -doc]
In the diskless.8 man page there is an example that contradicts the text:
o 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.
Following patch fixes this. Checked with the various docs in
/usr/share/examples/diskless/
marco
--- 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
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020816141504.33143.qmail>
