Hello, All! For the beginning there is some comparison of behaviour various of OS: $ echo readable >try_read_me $ chmod 0333 try_read_me $ uname -a SunOS sundae 5.8 Generic_108528-23 sun4u sparc SUNW,Ultra-1 $ cat try_read_me readable $ uname -a SunOS sun 5.8 Generic_108528-13 sun4u sparc $ cat try_read_me cat: try_read_me: Permission denied $ uname -sr FreeBSD 4.8-RELEASE $ cat try_read_me readable $ uname -sr FreeBSD 5.2.1-RELEASE $ cat try_read_me cat: try_read_me: Permission denied $ uname -sr Linux 2.4.20-athlon $ cat try_read_me cat: try_read_me: Permission denied $ uname -sr Linux 2.2.19-servers $ cat try_read_me cat: try_read_me: Permission denied $uname -sr HP-UX B.11.11 $ cat try_read_me cat: try_read_me: Permission denied So, whether somebody can explain me behaviour of FreeBSD 4.x ? ;-) ~ If it ain't broke, we've still got a chance to fix it. -- Best regards, Igor mailto:savchyk@list.ru
> $ echo readable >try_read_me > $ chmod 0333 try_read_me$ uname -sr FreeBSD 4.10-STABLE $ cat try_read_me cat: try_read_me: Permission denied Seems to be fixed.> $ uname -sr > FreeBSD 4.8-RELEASE > $ cat try_read_me > readable-- Cordula's Web. http://www.cordula.ws/
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 --
At 2004-06-14T13:06:04Z, "Igor S.Savchyk" <savchyk@list.ru> writes:> $ uname -sr > FreeBSD 4.8-RELEASE > $ cat try_read_me > readable$ uname -sr FreeBSD 4.9-STABLE $ cat try_read_me cat: try_read_me: Permission denied -- Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20040614/56f073b3/attachment.bin
On Mon, 14 Jun 2004 16:06:04 +0300 "Igor S.Savchyk" <savchyk@list.ru> wrote:>For the beginning there is some comparison of behaviour various of OS: > >$ echo readable >try_read_me >$ chmod 0333 try_read_meMy guess is that you were testing as root. For instance, I retried this example under Solaris 2.8, FreeBSD 4.10, and FreeBSD 5.2-CURRENT: 2-pong% echo readable > try_read_me 3-pong% chmod 0333 try_read_me 4-pong% cat try_read_me cat:14: permission denied: try_read_me 5-pong% uname -a SunOS pong 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4 Solaris 1-sec% echo readable > try_read_me 2-sec% chmod 0333 try_read_me 3-sec% cat try_read_me cat: try_read_me: Permission denied 4-sec% uname -a FreeBSD sec.pkix.net 4.10-STABLE FreeBSD 4.10-STABLE #2: Thu Jun 10 18:41:59 EDT 2004 root@sec.pkix.net:/usr/obj/usr/src/sys/NORMAL i386 $ echo readable > try_read_me $ chmod 0333 try_read_me $ cat try_read_me cat: try_read_me: Permission denied $ uname -a FreeBSD epia.pkix.net 5.2-CURRENT FreeBSD 5.2-CURRENT #1: Sun May 9 04:56:46 EDT 2004 root@epia.pkix.net:/usr/obj/usr/src/sys/EPIA i386 -- -Chuck