I would check the file and directory permissions of where you have your
config files. MRTG creates a temp file in that same directory when it is
running. Assume you have myconfig.cfg, the file will look something like
myconfig.cfg_l_87659 or some other number. Be sure user mrtg has permissions
on all the files and the directory.

---
Anson Rinesmith

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Tao Yaoning
Sent: Thursday, October 13, 2005 9:00 PM
To: [EMAIL PROTECTED]
Subject: [mrtg] anybody knows this problem?

Hello everybody
I use mrtg to monitor the traffic. It's the lastest version. I run MRTG as
Daemon mode. When I login as root, it works OK, only I need to do is to
change the web files' ownership. Becuase I run in root, so all the file
created by MRTG belong to root.root. but when MRTG try to update the data,
it use MRTG privilege and don't have permission to edit these files.
 So I think I can run MRTG under user mrtg, but I get an error messages, it
told me that that user mrtg didn't have permission to create the temperately
lock in /usr/local/mrtg/bin/mrtg file 1640 line.
I check the /usr/local/mrtg/bin/mrtg file, in 1640 it's like this
 open(LOCK,">$template_lock")*******************
 Anybody can give me an idea?
 Thanks

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi

Reply via email to