2017-06-08 98 views
0

我在Jessie Debian上安裝了Freeradius。首先它是可以的 - 工作。但是,我不知道爲什麼它停了,我無法啓動它。我嘗試重新安裝,但也有同樣的問題。這是狀態和開始嘗試。Freeradius自行結束,無法啓動

[email protected]:~$ /etc/init.d/freeradius status 
    ● freeradius.service - LSB: Radius Daemon 
     Loaded: loaded (/etc/init.d/freeradius) 
     Active: failed (Result: exit-code) since Thu 2017-06-08 11:12:02 BST; 32min ago 

和嘗試後,開始

[email protected]:~$ /etc/init.d/freeradius start 
[....] Starting freeradius (via systemctl): freeradius.serviceFailed to start freeradius.service: Access denied 
failed! 

更重要的是在Ubuntu 12.04我有同樣的問題。

我用:

[email protected]:~$ sudo freeradius -XC 
freeradius: FreeRADIUS Version 2.2.5, for host x86_64-pc-linux-gnu, built on Oct 24 2014 at 02:05:28 
Copyright (C) 1999-2013 The FreeRADIUS server project and contributors. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 
You may redistribute copies of FreeRADIUS under the terms of the 
GNU General Public License. 
For more information about these matters, see the file named COPYRIGHT. 
Starting - reading configuration files ... 
including configuration file /etc/freeradius/radiusd.conf 
Configuration file /etc/freeradius/radiusd.conf is globally writable. Refusing to start due to insecure configuration. 
Errors reading or parsing /etc/freeradius/radiusd.conf 

和:

[email protected]:~$ sudo freeradius -lstdout -xxx -fC 
Fri Jun 9 06:22:07 2017 : Info: freeradius: FreeRADIUS Version 2.2.5, for host x86_64-pc-linux-gnu, built on Oct 24 2014 at 02:05:28 
Fri Jun 9 06:22:07 2017 : Debug: Server was built with: 
Fri Jun 9 06:22:07 2017 : Debug: accounting 
Fri Jun 9 06:22:07 2017 : Debug: authentication 
Fri Jun 9 06:22:07 2017 : Debug: WITH_DHCP 
Fri Jun 9 06:22:07 2017 : Debug: WITH_VMPS 
Fri Jun 9 06:22:07 2017 : Debug: Server core libs: 
Fri Jun 9 06:22:07 2017 : Debug: ssl: OpenSSL 1.0.1t 3 May 2016 
Fri Jun 9 06:22:07 2017 : Info: Copyright (C) 1999-2013 The FreeRADIUS server project and contributors. 
Fri Jun 9 06:22:07 2017 : Info: There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
Fri Jun 9 06:22:07 2017 : Info: PARTICULAR PURPOSE. 
Fri Jun 9 06:22:07 2017 : Info: You may redistribute copies of FreeRADIUS under the terms of the 
Fri Jun 9 06:22:07 2017 : Info: GNU General Public License. 
Fri Jun 9 06:22:07 2017 : Info: For more information about these matters, see the file named COPYRIGHT. 
Fri Jun 9 06:22:07 2017 : Info: Starting - reading configuration files ... 
Fri Jun 9 06:22:07 2017 : Debug: including configuration file /etc/freeradius/radiusd.conf 
Fri Jun 9 06:22:07 2017 : Error: Configuration file /etc/freeradius/radiusd.conf is globally writable. Refusing to start due to insecure configuration. 
Fri Jun 9 06:22:07 2017 : Error: Errors reading or parsing /etc/freeradius/radiusd.conf 

回答

0

運行的freeradius與sudo freeradius -XC,它會打印出原因,它不能啓動(然後退出)。

如果sudo freeradius -XC報告沒有錯誤,則可能是權限問題。

運行sudo freeradius -lstdout -xxx -fc,然後FreeRADIUS將seuid()/segid()降到配置的使用radiusd.conf

+0

我追加了你的命令的結果。 – TraPS

+0

所以你需要修改你的配置文件的權限,我假設你改變了,就像默認安裝一樣,它們工作正常。 –

+0

/etc/freeradius中的文件不應該是世界可寫的''chmod -R g -w/etc/freeradius'' –