Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jun 2004 13:12:36 -0400
From:      Randy Pratt <rpratt1950@earthlink.net>
To:        "Igor S.Savchyk" <savchyk@list.ru>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: FreeBSD RELENG_4  error?!
Message-ID:  <20040614131236.63bd2859.rpratt1950@earthlink.net>
In-Reply-To: <13312261450.20040614160604@list.ru>
References:  <13312261450.20040614160604@list.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 14 Jun 2004 16:06:04 +0300
"Igor S.Savchyk" <savchyk@list.ru> wrote:

> Hello, All!
> 
> For the beginning there is some comparison of behaviour various of OS:
> 
> 
> $ echo readable >try_read_me
> $ chmod 0333 try_read_me
> 

[ snip other OS's ]

> $ uname -sr
> FreeBSD 4.8-RELEASE
> $ cat try_read_me
> readable

[ snip more OS's ]

> 
> So, whether somebody can explain me behaviour of FreeBSD 4.x ? ;-)

I happen to have an old box around so that I could compare your
test results:

$ uname -sr
FreeBSD 4.8-RELEASE

$ echo readme > try_read_me
$ chmod 0333 try_read_me 
$ cat try_read_me 
cat: try_read_me: Permission denied

I can't duplicate the behavior that you are seeing.  It may be
a local issue.  Do the permissions actually end up as:

    --wx-wx-wx  1 rpratt  rpratt  7 Jun 14 13:00 try_read_me

Only root can read that file as the permissions are.  An ordinary
user should not be able to read it.  Are you perhaps testing as
root?

I see the same correct behavior on 4.10-STABLE too.

Best regards,

Randy
-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040614131236.63bd2859.rpratt1950>