[smokeping-users] SmokePing permission
kim.f at aware.co.th
Tue Feb 2 19:19:30 CET 2010
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
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.
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.
Kim Ford wrote:
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:
### 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
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?
smokeping-users mailing list
smokeping-users at lists.oetiker.ch<mailto:smokeping-users at lists.oetiker.ch>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the smokeping-users