On 24 Oct 2001, Simon Wong wrote:
> lonewolf: /usr/local/java/books
> $ lsa
> total 1528
> 4 drwxr-sr-x 4 sjw staff 4096 Oct 24 23:23 .
> 4 drwxr-sr-x 4 sjw staff 4096 Oct 24 22:57 ..
> 4 drw-r--r-- 2 sjw staff 4096 Oct 13 19:22
> META-INF
> 4 drw-r--r-- 43 sjw staff 4096 Oct 13 19:21
> javacook
> 1512 -rw-rw-r-- 1 sjw staff 1542109 Oct 24 23:14
> javacooksrc.zip
>
>
> But when I try and cd into either of the directories I get an error:
>
> lonewolf: /usr/local/java/books
> $ cd javacook
> bash: cd: javacook: Permission denied
>
> lonewolf: /usr/local/java/books
> $
For any user except the root user to enter a directory, that user must
have the execute bit set at the relavent permission level {user, group or
other}.
In your case, you have
drw-r--r-- 43 sjw staff 4096 Oct 13 19:21 javacook
Note that in none of the three permission groups is the execute bit set.
To allow access to everyone, you need to do this {as either root or sjw}
chmod 755 javacook
ls -l will then show you
drwxr-xr-x 43 sjw staff 4096 Oct 13 19:21 javacook
and you'll be able to enter the directory.
DaZZa
--
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug