[smokeping-users] Slave cannot open Secrets file (Permisson Denied)
smokeping at museum.rain.com
Tue Nov 3 21:16:56 CET 2009
Sounds like you're running on Linux, and I'm FreeBSD, but here is
a generic reply that I hope will be useful.
Figure out what GROUP the smokeping daemon is running as, and:
chgrp $GROUP /opt/smokeping/etc/secrets.conf
Group-read permissions for group "root" don't do any good if the
smokeping daemon isn't running as a user that belongs to group
"root" -- and you probably don't want it to. Change the file's
group to match the smokeping daemon, not the other way around.
And check the ownership/perms of the other path elements
to ensure that they will grant search permission to $GROUP
Hope this helps.
On Tue, Nov 03, 2009 at 03:02:56PM -0500, Eric Chatham wrote:
> I had this working at one time with giving the secrets file 640 permissions. Our hardware failed on our Linux server, so I had to re-install all our applications from a backup. One of the apps was smokeping. I re-installed the program and just restored the configs from the backup.
> Can someone tell me why I'm now having a problem on the slave server trying to open the secrets.conf file on the master server? I keep getting this error:
> WARNING: Opening secrets file /opt/smokeping/etc/secrets.conf: Permission denied
> ERROR: we did not get config from the master. Maybe we are not configured as a slave for any of the targets on the master ?
> Here is my secrets.conf stat:
> stat secrets.conf
> File: `secrets.conf'
> Size: 56 Blocks: 16 IO Block: 4096 regular file
> Device: fd00h/64768d Inode: 4423683 Links: 1
> Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 0/ root)
> Access: 2009-11-03 13:21:26.000000000 -0600
> Modify: 2009-11-02 15:06:10.000000000 -0600
> Change: 2009-11-03 13:36:58.000000000 -0600
> Eric Chatham
> MIS Department
> Phone: (216) 373-4683
> Fax: (216) 373-4669
> echatham at broadvox.com
> [cid:image001.gif at 01CA5C96.53E33750]
> CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient.
> smokeping-users mailing list
> smokeping-users at lists.oetiker.ch
More information about the smokeping-users