From owner-freebsd-hackers Wed Apr 24 14:52:20 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id OAA29752 for hackers-outgoing; Wed, 24 Apr 1996 14:52:20 -0700 (PDT) Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id OAA29743 for ; Wed, 24 Apr 1996 14:52:16 -0700 (PDT) Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA11787; Wed, 24 Apr 1996 23:52:01 +0200 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA29259; Wed, 24 Apr 1996 23:52:01 +0200 Received: (from j@localhost) by uriah.heep.sax.de (8.7.5/8.6.9) id XAA28721; Wed, 24 Apr 1996 23:37:24 +0200 (MET DST) From: J Wunsch Message-Id: <199604242137.XAA28721@uriah.heep.sax.de> Subject: Re: BUG in FreeBSD 2.1R To: freebsd-hackers@freebsd.org (FreeBSD hackers) Date: Wed, 24 Apr 1996 23:37:24 +0200 (MET DST) Cc: kallio@cc.jyu.fi Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Seppo Kallio" at Apr 24, 96 08:46:30 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL24 ME8a] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk As Seppo Kallio wrote: > > If I have > > /opt/ftp directory with permissions -rwx----- > > Then I mount /opt/ftp /dev/sd1a having -rwxr-xr-x > > The /opt/ftp directory is getting the real permissions from the original > directory definition, but it is SHOWING the permissions the mounted disk > directory has. cd /opt/ftp pwd :-) This seems to be a bug with all Unix implementations i've seen so far. The simplest workaround: since mount points finally always use the permissions from the mounted resource, do always give them 555 or 755 permissions. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)