[smokeping-users] SmokePing permission
Kim Ford
kim.f at aware.co.th
Tue Feb 2 19:19:30 CET 2010
Hi Peter,
Thanks for this quick response. I did a quick check and it’s using the (…duh) smokeping user:
[root at freebsd /usr/local/etc/smokeping/tmp]# ls -la data
total 10
drwxrwxrwx 5 www www 512 Feb 3 00:46 .
drwxrwxrwx 4 www www 512 Feb 3 00:11 ..
drwxr-xr-x 2 smokeping www 512 Feb 3 01:11 __sortercache
drwxr-xr-x 2 smokeping www 512 Feb 3 00:42 mysite1
drwxr-xr-x 2 smokeping www 512 Feb 3 00:42 mysite2
I appreciate your help.
Kind Regards,
Kim
From: Peter Kristolaitis [mailto:alter3d at alter3d.ca]
Sent: Wednesday, February 03, 2010 12:56 AM
To: Kim Ford
Cc: smokeping-users at lists.oetiker.ch
Subject: Re: [smokeping-users] SmokePing permission
The SmokePing poller typically does not run under the Apache user's context -- it will typically run under its own account (smokeping, _smokeping, etc), depending on your particular platform and how you've configured it.
You should check what user was created during the port install, and set that user to be the owner of that directory.
- Peter
Kim Ford wrote:
Hi,
This is my first time trying to install SmokePing. I installed using ports on a FreeBSD machine to learn.
I’m getting the following error trying to start SmokePing:
Starting smokeping.
### assuming you are using an fping copy reporting in milliseconds
ERROR: mkdir /usr/local/etc/smokeping/tmp/data/mysite2: Permission denied
/usr/local/etc/rc.d/smokeping: WARNING: failed to start smokeping
I created the tmp directory under /usr/local/etc/smokeping/ for lack of any documentation I could dig up.
Permissions on this directory are:
[root at freebsd /usr/local/etc/smokeping]# ls -al tmp
total 8
drwxr-xr-x 4 www www 512 Feb 3 00:11 .
drwxr-xr-x 3 root wheel 512 Feb 3 00:12 ..
drwxr-xr-x 2 www www 512 Feb 3 00:11 data
drwxr-xr-x 2 www www 512 Feb 3 00:11 var
I’m assuming that smokeping runs under the Apache www account. Everything does work if chmod 777 the temp dir, but I don’t think that’s good practice.
What’s the proper permission to set here?
Thanks mucho,
Kim
________________________________
_______________________________________________
smokeping-users mailing list
smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/smokeping-users/attachments/20100203/b2e4770f/attachment.htm
More information about the smokeping-users
mailing list