Owen Townend <[EMAIL PROTECTED]>: > > On Tue, 2007-11-13 at 13:25 -0300, Patricio Rojo wrote: > > > > I recently noticed that strange things happen if you do 'chmod 670' on > > a directory that you own, and whose group is set to one you belong. > > > > - If you try 'ls', then its contents are shown > > - If you try 'cd' to it, you get permission denied.
You need execute permission on a dir to do anything to it. Without it, you can still access files in it if you know the files' names. > > - If you try 'ls -l', you get many interrogation signs (?????) instead > > of the properties of the file. > > - If the user is changed to someone other than you, but the group > > remains the same, then you get full access. > > > > Since the permissions are set to full access to the group, and I'm > > part of that group, shouldn't I get full access to the directory? > > Anyways, getting many '????' is very awkward. > > It's my understanding that it is a linear check for permission. UID, Agreed. User (ugo) doesn't have x, fail. > then GID, then world permissions stopping at a match rather than > aggregating the three. This would explain the behaviour. -- Any technology distinguishable from magic is insufficiently advanced. (*) http://blinkynet.net/comp/uip5.html Linux Counter #80292 - - http://www.faqs.org/rfcs/rfc1855.html Please, don't Cc: me. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]