From 2480b52743409a09277ecae47259b57804232e25 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 31 Aug 2016 09:48:43 +0200 Subject: [PATCH] mount: add note about paths verification to mount.8 Signed-off-by: Karel Zak --- sys-utils/mount.8 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 79d77bc98b..442b6feb3e 100644 --- a/sys-utils/mount.8 +++ b/sys-utils/mount.8 @@ -272,14 +272,15 @@ Thus, given a line any user can mount the iso9660 filesystem found on an inserted CDROM using the command: .RS -.sp -.B "mount /dev/cdrom" -.RE -or -.RS .B "mount /cd" .sp .RE +Note that \fBmount\fR is very strict about non-root users and all paths +specified on command line are verified before fstab is parsed or a helper +program is executed. It's strogly recommended to use a valid mountpoint to +specify filesystem, otherwise \fBmount\fR may fail. For example it's bad idea +to use NFS or CIFS source on command line. +.PP For more details, see .BR fstab (5). Only the user that mounted a filesystem can unmount it again. -- 2.47.2