FreeRADIUS startet nicht

9416
Ashtray

Ich kann mich nicht genau erinnern, was ich geändert habe, aber ich denke, ich habe die aktuelle Freeradius- usersDatei durch eine Sicherungskopie ersetzt, und ich denke, die Berechtigungen sind irgendwie durcheinander geraten.

Ich bekomme dies in die Protokolle geschrieben, wenn ich versuche, den radiusd-Dienst ( /etc/init.d/radiusd start) zu starten :

Thu Feb 20 08:37:21 2014 : Error: Couldn't open /etc/raddb/users for reading: Permission denied Thu Feb 20 08:37:21 2014 : Error: Errors reading /etc/raddb/users Thu Feb 20 08:37:21 2014 : Error: /etc/raddb/modules/files[7]: Instantiation failed for module "files" Thu Feb 20 08:37:21 2014 : Error: /etc/raddb/sites-enabled/default[10]: Failed to load module "files". Thu Feb 20 08:37:21 2014 : Error: /etc/raddb/sites-enabled/default[1]: Errors parsing authorize section. Thu Feb 20 08:37:21 2014 : Error: Failed to load virtual server <default> 

Ausgabe von ls -la /etc/raddb/

# ls -lah /etc/raddb/ total 328K drwxr-xr-x. 8 root radiusd 4.0K Feb 20 08:28 . drwxr-xr-x. 120 root root 12K Feb 20 08:32 .. -rw-r-----. 1 root radiusd 671 Oct 3 2012 acct_users -rw-r-----. 1 root radiusd 4.1K Oct 3 2012 attrs -rw-r-----. 1 root radiusd 513 Oct 3 2012 attrs.access_challenge -rw-r-----. 1 root radiusd 481 Oct 3 2012 attrs.access_reject -rw-r-----. 1 root radiusd 437 Oct 3 2012 attrs.accounting_response -rw-r-----. 1 root radiusd 2.0K Oct 3 2012 attrs.pre-proxy drwxrwx---. 2 root radiusd 4.0K Jun 13 2013 certs -rw-r-----. 1 root radiusd 7.2K Feb 6 14:12 clients.conf -rw-r--r--. 1 root radiusd 1.3K Oct 3 2012 dictionary -rw-r-----. 1 root radiusd 21K Jun 14 2013 eap.conf -rw-r-----. 1 root radiusd 4.8K Oct 3 2012 example.pl -rw-r-----. 1 root radiusd 2.3K Oct 3 2012 hints -rw-r-----. 1 root radiusd 1.6K Oct 3 2012 huntgroups -rw-r-----. 1 root radiusd 3.2K Oct 3 2012 ldap.attrmap drwxr-x---. 2 root radiusd 4.0K Dec 19 14:05 modules -rw-r-----. 1 root radiusd 4.2K Oct 3 2012 policy.conf -rw-r-----. 1 root radiusd 4.8K Oct 3 2012 policy.txt -rw-r-----. 1 root radiusd 984 Oct 3 2012 preproxy_users -rw-r-----. 1 root radiusd 27K Oct 3 2012 proxy.conf -rw-r-----. 1 root radiusd 28K Oct 3 2012 radiusd.conf drwxr-x---. 2 root radiusd 4.0K Feb 20 08:38 sites-available drwxr-x---. 2 root radiusd 4.0K Jun 13 2013 sites-enabled drwxr-x---. 4 root radiusd 4.0K Dec 17 14:02 sql -rw-r-----. 1 root radiusd 3.0K Dec 17 14:21 sql.conf -rw-r-----. 1 root radiusd 2.5K Oct 3 2012 sqlippool.conf -rw-r-----. 1 root radiusd 3.6K Oct 3 2012 templates.conf -rw-r--r--. 1 root radiusd 30K Feb 7 11:53 users drwxr-xr-x. 5 root root 4.0K Nov 26 13:57 webmgmt 

Zusätzliche Information:

Ich verwende CentOS 6.5.

Ich kann den radiusd-Dienst im Debug-Modus ( radiusd -X) starten und funktioniert einwandfrei. (Vielleicht weil es Konfig-Dateien als die rootoder so etwas liest ...

Vielleicht können Sie mich in die richtige Richtung weisen, weil ich irgendwie verwirrt bin. Es scheint, als hätten radiusdBenutzer HAS-Berechtigungen zum Lesen dieser Datei. Ich habe alle möglichen Kombinationen von chmod'ding der Datei ausprobiert, aber kein Erfolg. Versuchte, den Besitzer der usersDatei ebenfalls zu ändern radiusd.

0

2 Antworten auf die Frage

-1
Augustus Francis

Führen Sie FreeRadius als su-Benutzer aus. Sie haben Erlaubnisprobleme. Verwenden Sie möglicherweise chmod, um die Berechtigung der Benutzerdatei zu ändern. Aber es wäre eine Sicherheitsbedrohung.

Führen Sie freeradius -Xals root oder radiusd -Xals root aus

Wie gesagt, ich habe CHModding ausprobiert. Auch wenn Freeradius immer im Debug-Modus läuft, macht das irgendwie keinen Sinn ... Ashtray vor 10 Jahren 0
-1
Sandeep K V

Ich hatte ein ähnliches Problem. Ich denke, das hängt mit den Abhängigkeiten des freien Radius zusammen. Aktualisieren Sie Ihre Ubuntu-Umgebung:

apt-get update apt-get upgrade apt-get install freeradius 

Sie benötigen außerdem Root-Berechtigungen, um dies auszuführen. Nicht sicher, aber es funktionierte für mich, nachdem ich Freeradius unter root-Benutzer gestartet hatte. Befehl, das zu tun:

systemctl status freeradius

HTH