Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install FreeRadius, but I am getting the following error:

Failed binding to /var/run/freeradius/freeradius.sock: Permission denied

I have no experience with Unix sockets, so I have no idea what's the issue here. Could you please help me?

For what it's worth, I am using Ubuntu 9.04.

share|improve this question
Are you installing FreeRadius using sudo? Which command are you running to get that error. – HD. Aug 18 '09 at 15:49
Yes, I am running it using sudo. The command I am using is sudo freeradius -X. – Hosam Aly Aug 19 '09 at 11:58

Two possibilities occur to me off the top of my head. The first is that the directory /var/run/freeradius doesn't exist or the user doesn't have permission to write in that directory. Did you install from a package or source? What is the result of ls /var/run/freeradius/ and what user are you running freradius as? If you installed from a package the directory should have been setup for you. If not you may need to create the /var/run/freeradius directory and give it the proper permissions using chown and chmod. Look at the man pages for them.

The other possibility is that the Socket is getting created as root and then privleges are dropped. In that case you may need to make the umask for the freeraduis daemon 002 and /var/run/freeradius directory sgid to the group user for freeradius. These changes would need to be done in the script that starts freeradius. See the manpages for umask and chmod for more information about this.

If you installed the package from the Ubuntu repository both issues should have been handled. If you didn't you may want to consider installing the package using apt-get or aptitude. If you aren't sure which package to install use apt-cache to find out. apt-cache search freeradius should tell which packages for freeradius are available. apt-get -s install package tells you what will be installed and apt-get install package actually the packages.

share|improve this answer
Thank you. I haven't tried these steps, but I am thankful for your reply. – Hosam Aly Sep 16 '09 at 9:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.