[plug] accessing html docs

Richard Henry r.henry at murdoch.edu.au
Sun May 5 12:48:40 WST 2002


> localhost:/usr/doc/kde/HTML/en/kspread# ls -l index.html
> -rwxr--r--    1 root     root         6369 Apr  1 15:59 index.html
> ### Then as user:
> sol at tesla:~$ less /usr/doc/kde/HTML/en/kspread/index.html
> /usr/doc/kde/HTML/en/kspread/index.html: Permission denied
> 
> I thought that less could read it because o=r even though it 
> is chown'ed and 
> chgrp'd to root. But then get this:
> 
> localhost:/usr/doc/kde/HTML/en/kspread# chmod 777 index.html 
> localhost:/usr/doc/kde/HTML/en/kspread# ls -l index.html
> -rwxrwxrwx    1 root     root         6369 Apr  1 15:59 index.html
> ### Then as user:
> sol at tesla:~$ less /usr/doc/kde/HTML/en/kspread/index.html
> /usr/doc/kde/HTML/en/kspread/index.html: Permission denied
> 
> What's with that? If the permissions are totally open then 
> why can't I less 
> it? 
> 
> thanks,
> sol
> 

You need to make sure that all the directories (/usr through to
/usr/doc/kde/HTML/en/kspread) have execute permission (+x) on them - the
user needs to be able to get to the file, as well as read it.  You only have
permission to enter a directory if you have execute permission for it.  You
can check by just trying to enter it, ie:

	cd /usr/doc/kde/HTML/en/kspread

	as a normal user.  You only need read permission on the actual file
to less it.

Rich.



More information about the plug mailing list