Skip to content
Blog Dansguardian: Unable to getgrnam(): Success, Error opening/creating log file.

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

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 thoughts on “Dansguardian: Unable to getgrnam(): Success, Error opening/creating log file.”

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

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.