On Tue, 2007-11-13 at 12:49 -0800, Andrew Sackville-West wrote: > On Wed, Nov 14, 2007 at 07:22:45AM +1100, Owen Townend wrote: > > > > On Tue, 2007-11-13 at 13:25 -0300, Patricio Rojo wrote: > > > Hi, > > > > > > I don't know whether this is a bug or it is expected behavior. If > > > this is a bug I would appreciate someone telling me who to report it > > > to:D... > > > > > > > > > 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. > > > - If you try 'ls -l', you get many interrogation signs (?????) instead > > > of the properties of the file. > > > can you provide the exact output from ls -l? Usually, ??????? > indicates some kind of filesystem damage. > > A
Hey, I'm running Ubuntu 7.10 and was able to reproduce the behaviour. Also got the same result on my Etch box. [EMAIL PROTECTED]:~/TMP$ mkdir one; touch one/a one/b one/c; [EMAIL PROTECTED]:~/TMP$ ls -l total 8 drwxr-xr-x 3 owen owen 4096 2007-09-02 00:29 one [EMAIL PROTECTED]:~/TMP$ ls -l one total 4 -rw-r--r-- 1 owen owen 0 2007-09-02 00:29 a -rw-r--r-- 1 owen owen 0 2007-09-02 00:29 b -rw-r--r-- 1 owen owen 0 2007-09-02 00:29 c [EMAIL PROTECTED]:~/TMP$ chmod 670 one [EMAIL PROTECTED]:~/TMP$ ls -l one total 0 ?--------- ? ? ? ? ? one/a ?--------- ? ? ? ? ? one/b ?--------- ? ? ? ? ? one/c [EMAIL PROTECTED]:~/TMP$ ls -l total 8 drw-rwx--- 3 owen owen 4096 2007-09-02 00:29 one [EMAIL PROTECTED]:~/TMP$ uname -a Linux mattimeo 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux For kicks I booted a FreeBSD 6.2 VM and the behaviour was similar: $ ls -l one ls: a: Permission denied ls: b: Permission denied ls: c: Permission denied total 0 cheers, Owen. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]