Even after you have successfully installed dansguardian in your system, you may a get an error ‘Unable to getgrnam(): Success’ when you try to run dansguardian.

Follow these steps to solve this problem.
1. Check whether the user ‘nobody’ exists.

$ cat  /etc/passwd

see whether ‘nobody’ is listed. If not found add it.

2. Check whether the group ‘nogroup’ exits.

$ cat /etc/group

see whether ‘nogroup’ is listed. If not found add it.

3. Now open the dansguardian.conf and edit:

$ sudo vi /etc/dansguardian/dansguardian.conf

uncomment and change # daemongroup = 'nobody' to
daemongroup = 'nogroup'

If you try to run dansguardian now you may get a error message like this:

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

4. Now change the permissions on your log files.

$ sudo chown -R nobody:nogroup /var/log/dansguardian/

replace ‘/var/log/dansguardian/’ with your location if you have install in it some other location.

Now you will be able to run dansguardian successfully.
Please comment whether it worked or not.


3 Responses to “Dansguardian: Unable to getgrnam(): Success, Error opening/creating log file.”

  1. Elliott T says:

    IT WORKS – Thank you very much:)

  2. Nelson Oepkes says:

    I updated the conf file, but it’s still not working for me. Could there be a permission problem else where?

  3. Daniel says:

    This fixed my problem exactly! Thanks!

Leave a Reply