From owner-freebsd-questions Wed Jul 5 0:56:59 2000 Delivered-To: freebsd-questions@freebsd.org Received: from zeus.mipnet.org (zeus.mipnet.org [195.115.143.1]) by hub.freebsd.org (Postfix) with ESMTP id 30D7437B686 for ; Wed, 5 Jul 2000 00:56:43 -0700 (PDT) (envelope-from mahe@twam.com) Received: from twamx.twam (sad-hermes-8.mipnet.org [195.115.76.23]) by zeus.mipnet.org (8.9.3/8.9.3) with ESMTP id KAA23681 for ; Wed, 5 Jul 2000 10:13:33 +0200 (MET DST) Received: from twam.com (twamx.twam [127.0.0.1]) by twamx.twam (8.9.2/8.9.2) with ESMTP id JAA49837 for ; Wed, 5 Jul 2000 09:15:10 +0200 (CEST) (envelope-from mahe@twam.com) Message-ID: <3962E07E.3C3501DB@twam.com> Date: Wed, 05 Jul 2000 09:15:10 +0200 From: "Loic Mahe'" Organization: TWAM Informatique X-Mailer: Mozilla 4.7 [en] (X11; I; FreeBSD 3.1-RELEASE i386) X-Accept-Language: fr, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: fts_read and mount Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hello, I noticed a strange behaviour with mount(8) on FreeBSD 3.1 (I couldn't test it on another version) : Let's take /home with a sub-directory /home/users In the sub-directory, I wish to mount a filesystem (local ou through NFS) : mount /dev/wd0s2g /home/users or mount_nfs server:/home/users /home/users I do the following : 1) BEFORE mounting chmod 700 /home/users 2) I make the mount The rights are now 755 (which is normal, since the directory is now the root of the mounted filesystem) 3) I log in as a normal (non-root) user and I make : cd /home ; find . or cd /home ; ls -lR I get this error message : find: fts_read: Permission denied or ls: fts_read: Permission denied But if I do : cd /home/users ; find . or cd /home/users ; ls -lR there is no error. So, it seams that the 700 permission (which should be "hidden" by the mount), is still taken into account. [Of course, there is no reason to put permission 700 on /home/users]. Any ideas ? Thanks in advance. Loic To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message