Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/df It is not just root, it is device read access (kre)



details:   https://anonhg.NetBSD.org/src/rev/5eafc2d78039
branches:  trunk
changeset: 454495:5eafc2d78039
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 18 23:43:23 2019 +0000

description:
It is not just root, it is device read access (kre)

diffstat:

 bin/df/df.1 |  14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 5f0496b91890 -r 5eafc2d78039 bin/df/df.1
--- a/bin/df/df.1       Wed Sep 18 22:27:55 2019 +0000
+++ b/bin/df/df.1       Wed Sep 18 23:43:23 2019 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: df.1,v 1.51 2019/09/18 20:17:46 christos Exp $
+.\"    $NetBSD: df.1,v 1.52 2019/09/18 23:43:23 christos Exp $
 .\"
 .\" Copyright (c) 1989, 1990, 1993
 .\"    The Regents of the University of California.  All rights reserved.
@@ -178,6 +178,14 @@
 .Dq NAME=
 as in
 .Xr fstab 5 .
+The .Fl W
+option needs read access on the devices to be able to access
+the wedge information.
+This is available to users with root privileges, and usually to
+members of group operator.
+If the wedge information cannot be obtained, for one or more
+filesystems, the
+.Fl W option is silently ignoresd for those filesystems.
 .El
 .Sh ENVIRONMENT
 .Bl -tag -width BLOCKSIZE
@@ -213,7 +221,7 @@
 .Sh BUGS
 The
 .Fl W
-option needs root privileges to run because it needs to open the disk devices
-to get the wedge information.
+option needs read access to the disk device node to
+get the wedge information.
 Perhaps this information should be exposed via a different mechanism in the
 future.



Home | Main Index | Thread Index | Old Index