Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dansguardian won't run has anything BUT root
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Cheesegoduk
n00b
n00b


Joined: 18 Jul 2003
Posts: 18
Location: Peterborough, England

PostPosted: Fri Sep 16, 2005 9:55 am    Post subject: Dansguardian won't run has anything BUT root Reply with quote

Hiya

I've just replaced our aging proxy servers with a much faster system and began the process of reinstalling gentoo on the system, everything appears to be working fine aside from Dansguardian

Upon starting I recieve the following error

Code:

Error opening/creating log file. (check ownership and access rights).
I am running as nobody and I am trying to open /var/log/dansguardian/access.log
[/quote]

This error confuses me because nobody is the owner of the above file/folder, even after completly removing dansguardian and the folder above and reinstalling I'm hit by the same error - I've tried running Dansguardian with other users(such as the squid user) with no success, which makes no sense because I even chmod'd 777 the folder to rule out permissions! The only user it seems to run perfectly has is the root user - Which is not really what I want an Internet proxying system to run as.

A post on the DG mailing list suggests running in debug mode to see the full output of DG - However this involves modifying the makefile and I've no idea where this is on a Gentoo system.

Thanks

Lee
Back to top
View user's profile Send private message
GoofballJM1
Guru
Guru


Joined: 22 Mar 2004
Posts: 392
Location: Denver, CO USA

PostPosted: Fri Nov 11, 2005 10:12 pm    Post subject: Reply with quote

I had the same problem. It happened to me when I installed logrotate. Logrotate sets up a rotation schedule for dansguardian, and so does dansguardian. So when logrotate runs and recreates the new log file, it does it as a different user and different permissions, thus disallowing dansguardian running as nobody:nobody to access the log file. Just remove /etc/logrotate.d/dansguardian and you should be fine. :lol:
_________________
"Great spirits have often encountered violent opposition from weak minds." - Albert Einstein
Back to top
View user's profile Send private message
al
Guru
Guru


Joined: 26 Dec 2002
Posts: 304
Location: Scotland

PostPosted: Thu Jan 18, 2007 2:03 pm    Post subject: Dansguardian: error opening file as nobody Reply with quote

Trying to start Dansguardian, i get the following error:

Code:
 * Starting DansGuardian ...
Error opening/creating log file. (check ownership and access rights).
I am running as nobody and I am trying to open /var/log/dansguardian/access.log                       [ !! ]


The permissions for access.log are:

Code:
-rw-rw-rw-  1 nobody nobody 0 Jan 18 13:26 /var/log/dansguardian/access.log


I've tried two different versions of Dansguardian but still get the same error.

I found the following link with the same problem, but the answer given doesn't work for me: https://forums.gentoo.org/viewtopic-t-381543-highlight-dansguardian+starting.html

Can anyone help?

:(
Back to top
View user's profile Send private message
al
Guru
Guru


Joined: 26 Dec 2002
Posts: 304
Location: Scotland

PostPosted: Fri Jan 19, 2007 9:02 am    Post subject: Reply with quote

Shameless bump as i fell of the bottom of the page.

I still haven't resolved this.

/dansguardian and /dansguardian/access.log are both owned my nobody:nobody, yet nobody can't write to it.

can i change the user that dansguardian runs as instead?

:(
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Fri Jan 19, 2007 2:12 pm    Post subject: Reply with quote

my setup is fine
browser ->DG ->Squid->www
if it helps heres the conf files

Code:
/var/log/dansguardian/access.log {
  rotate 4
  weekly
  missingok
  notifempty
  nocreate
  nocopy
  nocopytruncate
  nocompress

  postrotate
    /usr/sbin/dansguardian -r
  endscript
}

Code:
grenada dansguardian # grep ^[A-Za-z] /etc/dansguardian/dansguardian.conf
reportinglevel = 0
languagedir = '/etc/dansguardian/languages'
language = 'ukenglish'
loglevel = 2
logexceptionhits = on
logfileformat = 1
filterip =
filterport = 8080
proxyip = 127.0.0.1
proxyport = 3128
accessdeniedaddress = 'http://YOURSERVER.
nonstandarddelimiter = on
usecustombannedimage = 1
custombannedimagefile = '/etc/dansguardia
filtergroups = 1
filtergroupslist = '/etc/dansguardian/fil
bannediplist = '/etc/dansguardian/bannedi
exceptioniplist = '/etc/dansguardian/exce
banneduserlist = '/etc/dansguardian/banne
exceptionuserlist = '/etc/dansguardian/ex
showweightedfound = on
weightedphrasemode = 2
urlcachenumber = 1000
urlcacheage = 900
phrasefiltermode = 2
preservecase = 0
hexdecodecontent = 0
forcequicksearch = 0
reverseaddresslookups = off
reverseclientiplookups = off
createlistcachefiles = on
maxuploadsize = -1
maxcontentfiltersize = 256
usernameidmethodproxyauth = on
usernameidmethodntlm = off # **NOT IMPLEM
usernameidmethodident = off
preemptivebanning = on
forwardedfor = on
usexforwardedfor = off
logconnectionhandlingerrors = on
maxchildren = 120
minchildren = 8
minsparechildren = 4
preforkchildren = 6
maxsparechildren = 32
maxagechildren = 500
ipcfilename = '/tmp/.dguardianipc'
urlipcfilename = '/tmp/.dguardianurlipc'
nodaemon = off
nologger = off
softrestart = off

_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Jan 20, 2007 9:44 am    Post subject: Reply with quote

merged above three posts here.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum