[smokeping-users] Re: Permission Denied - help

Vitor Yu vitor.yu at gmail.com
Mon Dec 11 21:19:16 MET 2006


hello,
/var/lib/smokeping >> Permission is OK now.

lab:/tmp# ls -alh /var/lib/
total 80K
drwxr-xr-x 20 root      root     4.0K 2006-12-11 17:40 .
drwxr-xr-x 14 root      root     4.0K 2006-12-07 19:17 ..
drwxr-xr-x  4 smokeping www-data 4.0K 2006-12-11 17:41 smokeping

However... when i open the website.. I still seeing Permission Denied at
/var/www/smokeping

Opening '/var/www/smokeping/World/Europe/Switzerland/SBB_last_10800.png' for
write: Permission denied

Opening '/var/www/smokeping/World/Europe/Switzerland/SBB_last_108000.png'
for write: Permission denied

ls -lah /var/www/
total 16K
drwxr-xr-x  4 root root     4.0K 2006-12-07 19:19 .
drwxr-xr-x 14 root root     4.0K 2006-12-07 19:17 ..
drwxr-xr-x  2 root root     4.0K 2006-12-07 19:19 apache2-default
drwxr-xr-x  4 root www-data 4.0K 2006-12-11 18:17 smokeping

>> Inside /var/www/smokeping

lab:/var/www/smokeping# ls -lah
total 84K
drwxr-xr-x 4 root www-data 4.0K 2006-12-11 18:17 .
drwxr-xr-x 4 root root     4.0K 2006-12-07 19:19 ..
-rw-r--r-- 1 root root     2.3K 2006-12-11 18:17 index.html
drwxr-xr-x 3 root root     4.0K 2006-12-11 18:17 Local
-rw-r--r-- 1 root root     2.6K 2006-12-11 18:17 Local.html
-rw-r--r-- 1 root root     3.1K 2006-12-11 18:17 Local.LocalMachine.html
-rw-r--r-- 1 root root     3.9K 2006-12-11 18:17 rrdtool.png
-rw-r--r-- 1 root root     4.3K 2006-12-11 18:17 smokeping.png
drwxr-xr-x 3 root root     4.0K 2006-12-11 18:17 World
-rw-r--r-- 1 root root     3.3K 2006-12-11 18:17 World.Europe.html
-rw-r--r-- 1 root root     3.8K 2006-12-11 18:17 World.Europe.Sun.html
-rw-r--r-- 1 root root     3.9K 2006-12-11 18:17
World.Europe.Switzerland.html
-rw-r--r-- 1 root root     4.4K 2006-12-11 18:17
World.Europe.Switzerland.SBB.html
-rw-r--r-- 1 root root     4.4K 2006-12-11 18:17
World.Europe.Switzerland.Tiscali.html
-rw-r--r-- 1 root root     3.6K 2006-12-11 18:17 World.Europe.UK.html
-rw-r--r-- 1 root root     4.2K 2006-12-11 18:17 World.Europe.UK.UCL.html
-rw-r--r-- 1 root root     2.5K 2006-12-11 18:17 World.html

Whats wrong?



thanks
On 12/10/06, Syed Waqqas Ahmed <s.waqqas at yahoo.com> wrote:
>
> Hi Vitor,
>
> Just change the ownership of the folder /var/lib/smokeping to apache.
> command for doing so is
> chown -R apache.apache /var/lib/smokeping.
>
> and to be on save side just delete all the files in /var/lib/smokeping(i.e.
> png and html) folder and then run the services again.
>
> Hope it solves your problem.
>
> Regards
>
> Waqqas
>
>
> *Vitor Yu <vitor.yu at gmail.com>* wrote:
>
> Hello Guys,
> I'm new with smokeping and need some help to find out how to fix this
> "Permission denied" issue.
> i have installed smokeping at my lab server, however when i try to add new
> targets and refresh http://localhost/cgi-bin/smokeping.cgi i got the
> following error>> Opening
> '/var/www/smokeping/Local/LocalMachine_last_10800.png' for write:
> Permission
> denied (http). and when looking at /var/logs/messages >>>
> Dec 8 13:27:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/UK/UCL.rrd': Permission denied
> Dec 8 13:27:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/Sun.rrd': Permission denied
> Dec 8 13:32:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/UK/UCL.rrd': Permission denied
> Dec 8 13:32:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/Sun.rrd': Permission denied
> Dec 8 13:37:01 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/UK/UCL.rrd': Permission denied
> Dec 8 13:37:01 localhost smokeping[2866]: Alert someloss is active for
> World.Europe.Switzerland.Tiscali
> Dec 8 13:37:02 localhost smokeping[2866]: Alert startloss is active for
> World.Europe.Switzerland.Tiscali
> Dec 8 13:37:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/Sun.rrd': Permission denied
> Dec 8 13:42:01 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/UK/UCL.rrd': Permission denied
> Dec 8 13:42:01 localhost smokeping[2866]: Alert someloss is active for
> World.Europe.Switzerland.Tiscali
> Dec 8 13:42:02 localhost smokeping[2866]: RRDs::update ERROR: opening
> '/var/lib/smokeping/World/Europe/Sun.rrd': Permission denied
>
> What kind of permssion should i change?!?
>
> thanks
> vitor
>
>
> --
> Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch
> ?subject=unsubscribe
> Help mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
> Archive http://lists.ee.ethz.ch/smokeping-users
> WebAdmin http://lists.ee.ethz.ch/lsg2.cgi
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
>


--
Unsubscribe mailto:smokeping-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:smokeping-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/smokeping-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the smokeping-users mailing list