• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Can't get into lighttpd log directory anymore  (Read 1719 times)
UnaClocker
Full Member
***

Karma: 0
Posts: 131



View Profile WWW
« on: March 13, 2010, 10:49:15 PM »

Very strange problem recently.. I used to do a cd /var/log/lighttpd  and then tail -f access.log  to watch the visitors come and go.. Well I can't even get into that directory anymore.. I have to sudo su  to even go in there.. I think I have the permissions set correctly:
Code:
drwxr-xr-- 2 www-data    www-data     4096 Mar  7 06:25 lighttpd
That would seem to indicate all users have read access.. Right?
But when I try, I get this:
Code:
-bash: cd: lighttpd/: Permission denied
This problem just appeared one day.. I haven't rebooted the thing in 2 months, so I'm really puzzled as to what changed.. Suggestions?
Logged

SheevaPlug - 8gb class 4 SDHC primary drive, 4tb 3.5" media drive, Debian Wheezy, nginx, Samba, Shorewall

Tempel
Newbie
*

Karma: 0
Posts: 11


View Profile WWW
« Reply #1 on: March 15, 2010, 07:03:18 PM »

I've never understood why, but directories must also be executable in order for you to get into them.
Code:
chmod +x /var/log/lighttpd
(done as root) will fix it.
Logged

UnaClocker
Full Member
***

Karma: 0
Posts: 131



View Profile WWW
« Reply #2 on: March 16, 2010, 05:13:00 PM »

Ahh wow, learn something new every day. Thanks, that did the trick. Smiley
Logged

SheevaPlug - 8gb class 4 SDHC primary drive, 4tb 3.5" media drive, Debian Wheezy, nginx, Samba, Shorewall

birdman
Sr. Member
****

Karma: 4
Posts: 440


View Profile WWW
« Reply #3 on: March 16, 2010, 06:14:20 PM »

I've never understood why, but directories must also be executable in order for you to get into them.
That's so you can turn of the execute bit to stop group or world access to a directory.  Just as you can turn of the read bit to stop someone listing the entries (but, provide x is set for them, they can still access entries provided they know they exist, and have access to those entries themselves).
Logged

Tempel
Newbie
*

Karma: 0
Posts: 11


View Profile WWW
« Reply #4 on: March 16, 2010, 06:33:00 PM »

So you're saying that being able to read a directory is being able to see the contents, while being able to execute a directory is being able to access those contents?  That's pretty cool, thanks for sharing.
Logged

Pages: [1]
Print
Jump to: