From owner-freebsd-hackers Fri Jan 15 05:19:06 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA12896 for freebsd-hackers-outgoing; Fri, 15 Jan 1999 05:19:06 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from relay2.aha.ru (relay2.aha.ru [195.2.64.35]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA12891 for ; Fri, 15 Jan 1999 05:19:02 -0800 (PST) (envelope-from abb@zenon.net) Received: from mp.aha.ru (mp [195.2.69.103]) by relay2.aha.ru (8.9.2/8.9.2/aha-r/0.04B) with ESMTP id QAA20395 for ; Fri, 15 Jan 1999 16:17:04 +0300 (MSK) Received: (from uucp@localhost) by mp.aha.ru (8.8.8/8.8.5) id QAA17977 for ; Fri, 15 Jan 1999 16:17:04 +0300 (MSK) Received: from p87-n69.zenon.net(195.2.69.87) by koi.zenon.net via smap (V1.3) id sma017952; Fri Jan 15 16:16:45 1999 Message-ID: <369F3FBD.ED99E422@zenon.net> Date: Fri, 15 Jan 1999 16:16:45 +0300 From: Alexander Bezroutchko X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: hackers@FreeBSD.ORG Subject: problem with permission at mount point again. Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a problem with permission at mount point. 2.2.7-STABLE behaves as described in thread titled 'permission confusion at mount point' (freebsd-hackers, July 1998) and the CAVEATS section of mount(8), it's bad for me (I have to shutdown running server), but understandable: -- mount(8) ----------------------- ... CAVEATS After a successful mount, the permissions on the original mount point de- termine if .. is accessible from the mounted file system. The minimum ^^^^^^^^^^^ permissions for the mount point for traversal across the mount point in ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ both directions to be possible for all users is 0111 (execute for all). ^^^^^^^ ... ----------------------------------- But 3.0-RELEASE (i386), doesn't satisfy this description. As root: 1 root@abb:/var# /bin/pwd 2 /var 3 root@abb:/var# ls -ld /var/ch 4 drwx------ 2 root wheel 512 15 Jan 10:53 /var/ch 5 root@abb:/var# mount /dev/wd2a /var/ch 6 root@abb:/var# ls -ld /var/ch 7 drwxr-xr-x 2 root wheel 512 15 Jan 14:03 /var/ch 8 root@abb:/var# As ordinary user: 10 abb@abb:~> cd /var/ch 11 abb@abb:/var/ch> ls -ld .. 12 ls: ..: Permission denied 13 abb@abb:/var/ch> /bin/pwd 14 /var/ch 15 abb@abb:/var/ch> cd .. 16 abb@abb:/var> /bin/pwd 17 /var 18 abb@abb:/var> As far as I understand, in compliance with manpage commands 13 & 15 must return 'Permission denied'. Behaviour described in the thread was claimed as correct and only possible. So why pwd and cd succeeds but ls fails ? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message