]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
mount: add note about paths verification to mount.8
authorKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2016 07:48:43 +0000 (09:48 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 31 Aug 2016 07:48:43 +0000 (09:48 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/mount.8

index 79d77bc98b4aa20290b6fda20b9648593731dc3c..442b6feb3e1fb61f598100bf5e6552d1fd76d2b9 100644 (file)
@@ -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.