From: Karel Zak Date: Wed, 31 Aug 2016 07:48:43 +0000 (+0200) Subject: mount: add note about paths verification to mount.8 X-Git-Tag: v2.29-rc1~90 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2480b52743409a09277ecae47259b57804232e25;p=thirdparty%2Futil-linux.git mount: add note about paths verification to mount.8 Signed-off-by: Karel Zak --- 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.