On 24-Mar-2012 Ted Harding wrote:
[See at end]
On 24-Mar-2012 Ted Harding wrote:
Greetings all! I have a wierdly mangled directory ("funny-dir" for present purposes). This may have occurred during a machine crash (I'm running this in a VirtualBox machine hosted on Windows and I recall that a few days ago the Windows host crashed).
Basically: from the parent directory, if I do 'ls -l' I see:
drw-r--r-- 2 ted ted 4096 2012-03-11 18:53 funny-dir
and that looks fine. But if I then do 'ls -la funny-dir' I see a lot of stuff all looking like:
?--------- ? ? ? ? ? funny-dir/. ?--------- ? ? ? ? ? funny-dir/.. ?--------- ? ? ? ? ? funny-dir/file1.pdf ?--------- ? ? ? ? ? funny-dir/file2.pdf [and so on]
[...]
Well, it looks as though I've found the problem! As above, the directory permissions were "drw-r--r--", whereas they are normally "drwxr-xr-x" for directories. So (still as 'ted') I did 'chmod 755 funny-dir', and now all is normal again.
This is the same approach as Adam just suggested (which I didn't see till later since I was busy doing rthe above stuff), but thanks, Adam, I would have got there thanks to you if I'd seen your suggestion first!
Ah well, now to wonder why it happened (it could be that I simply did a 'chmod 644 *' at some point ... ).
Best wishes to all, Ted.
------------------------------------------------- E-Mail: (Ted Harding) Ted.Harding@wlandres.net Date: 24-Mar-2012 Time: 22:15:55 This message was sent by XFMail -------------------------------------------------