gabriel rosenkoetter on Thu, 1 Feb 2001 23:57:40 -0500 (EST)


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] weird permission settings


On Thu, Feb 01, 2001 at 08:59:59PM -0500, MaD dUCK wrote:
> %> id
> uid=101(patrick) gid=100(users) groups=500(unshaven)
> %> ls -ld testdir
> drwx---r-x    2 root     unshaven      4096 Feb  1 20:53 testdir
> %> cd testdir
> cd: permission denied: testdir
> 
> any ideas???
> testdir should be world readable, but if group has --- permissions,
> then even though it's world readable, any member of a group can't
> chdir or ls into the/that directory...

As I already explained to you elsewhere, Martin, You've got a
mistaken understanding of that last field. It's called "other",
not "world".

Just means "anything that's not yet been covered by the other two
bits". What you're seeing is precisely the expected behavior. I
think it's even explictly mentioned in POSIX.1, though I'm shaky on
that. (At the least, nobody who deals with FS internals *ever* calls
the third ownership bit the "world" bit, it is *always* the "others"
bit, and you should treat it as such.)

       ~ g r @ eclipsed.net


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug