diff options
author | Karel Zak | 2016-08-31 09:48:43 +0200 |
---|---|---|
committer | Karel Zak | 2016-08-31 09:48:43 +0200 |
commit | 2480b52743409a09277ecae47259b57804232e25 (patch) | |
tree | 7f3d582cb6faab85041dfc2cf743fb3bed0af5dd /sys-utils | |
parent | libblkid: [exfat] Limit maximum number of iterations in find_label (diff) | |
download | kernel-qcow2-util-linux-2480b52743409a09277ecae47259b57804232e25.tar.gz kernel-qcow2-util-linux-2480b52743409a09277ecae47259b57804232e25.tar.xz kernel-qcow2-util-linux-2480b52743409a09277ecae47259b57804232e25.zip |
mount: add note about paths verification to mount.8
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils')
-rw-r--r-- | sys-utils/mount.8 | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8 index 79d77bc98..442b6feb3 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. |