Date: Sun, 5 Jul 1998 12:39:40 +0200 (CEST) From: Stefan Eggers <seggers@semyam.dinoco.de> To: FreeBSD-gnats-submit@FreeBSD.ORG Cc: seggers@semyam.dinoco.de Subject: docs/7172: Explain confusing mount behavior in man pages Message-ID: <199807051039.MAA04994@semyam.dinoco.de>
next in thread | raw e-mail | index | archive | help
>Number: 7172 >Category: docs >Synopsis: Explain confusing mount behavior in man pages >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 5 04:10:01 PDT 1998 >Last-Modified: >Originator: Stefan Eggers >Organization: none >Release: FreeBSD 2.2.6-STABLE i386 >Environment: 2.2-stable >Description: Mounting on a directory with permissions 0700 leads to the links . and .. in the mounted filesystem to be inaccessible to non- owners. This is confusing and should have been documented in the mount man pages. >How-To-Repeat: Try such a mount and then as a mere user try accessing .. in the newly mounted filesystem. Have fun. >Fix: Here are patches for mount(2) and mount(8) which add some explanation under BUGS. I think that's the appropriate place as it can't be the intended one. Index: mount.2 =================================================================== RCS file: /usr2/FreeBSD/CVSROOT/src/lib/libc/sys/mount.2,v retrieving revision 1.2.2.6 diff -u -r1.2.2.6 mount.2 --- mount.2 1997/08/19 23:48:10 1.2.2.6 +++ mount.2 1998/07/05 10:35:12 @@ -435,6 +435,10 @@ .Xr umount 8 .Sh BUGS Some of the error codes need translation to more obvious messages. +.Pp +Mounting on a node with too restrictive permissions leads to . and .. +within the mounted filesystem to be inaccessible. For a filesystem +accessible to everyone use 0755. .Sh HISTORY .Fn Mount and Index: mount.8 =================================================================== RCS file: /usr2/FreeBSD/CVSROOT/src/sbin/mount/mount.8,v retrieving revision 1.11.2.3 diff -u -r1.11.2.3 mount.8 --- mount.8 1997/12/01 00:47:09 1.11.2.3 +++ mount.8 1998/07/05 10:33:09 @@ -314,6 +314,10 @@ .Xr umount 8 .Sh BUGS It is possible for a corrupted file system to cause a crash. +.Pp +Mounting on a node with too restrictive permissions leads to . and .. +within the mounted filesystem to be inaccessible. For a filesystem +accessible to everyone use 0755. .Sh HISTORY A .Nm mount >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807051039.MAA04994>