Date: Wed, 05 Jul 2000 09:15:10 +0200 From: "Loic Mahe'" <mahe@twam.com> To: freebsd-questions@freebsd.org Subject: fts_read and mount Message-ID: <3962E07E.3C3501DB@twam.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3962E07E.3C3501DB>