ls mystery

Frank Shute frank at esperance-linux.co.uk
Mon Feb 16 01:04:39 GMT 2004


# ls -al /usr/ports/distfiles | grep xc
drw-r--r--   2 root   wheel       512 Oct 31 03:03 xc

$ ls -al /usr/ports/distfiles/xc

<zilch>

$ ls -al /usr/ports/distfiles/

<works>

# ls -al /usr/ports/distfiles/xc

<works>

# chmod 755 /usr/ports/distfiles/xc

$ ls -al /usr/ports/distfiles/xc

<works!> 

Why can't I read the dir as a user (group wheel) with permissions of
644 but I can with permissions of 755? What the hell have the
executable bits got to do with reading a dir? I'm confused... :(

$ uname -r

4.9-RC

I think I saw some ls stuff going in when I cvs-upped the other night
to 4.9 RELEASE. Anybody aware of a problem or am I getting something
wrong?

-- 

 Frank 

*-*-*-*-*-*-*-*-*-*-*
   Boroughbridge.
 Tel: 01423 323019
     ---------
PGP keyID: 0xC0B341A3
*-*-*-*-*-*-*-*-*-*-*

http://www.esperance-linux.co.uk/





More information about the Ukfreebsd mailing list