Hi I am running CentOS 7.3 with the latest FreeRADIUS available. I am having trouble getting radmin working getting the following error when trying to run it. [root@asm-rancid01 ~]# radmin -f /etc/raddb/sites-enabled/control-socketradmin: Failed connecting to /etc/raddb/sites-enabled/control-socket: Too many levels of symbolic links[root@asm-rancid01 ~]# radminradmin: Could not find control socket in /etc/raddb/radiusd.conf [root@asm-rancid01 ~]# cd /etc/raddb/sites-enabled/[root@asm-rancid01 sites-enabled]# ls -latotal 4drwxr-x---. 2 root radiusd 63 Jun 22 10:42 .drwxr-xr-x. 9 root radiusd 4096 Jun 22 10:41 ..lrwxrwxrwx. 1 root root 14 Jun 22 10:42 control-socket -> control-socketlrwxrwxrwx. 1 root radiusd 26 Jun 17 17:56 default -> ../sites-available/defaultlrwxrwxrwx. 1 root radiusd 31 Jun 17 17:56 inner-tunnel -> ../sites-available/inner-tunnel[root@asm-rancid01 sites-enabled]# Radiusd start and I see no errors in the logs. sudo cat /etc/raddb/sites-available/control-socket |grep "^[^#;]"listen { # # Listen on the control socket. #type = control # # Socket location. # # This file is created with the server's uid and gid. # It's permissions are r/w for that user and group, and # no permissions for "other" users. These permissions form # minimal security, and should not be relied on. # socket = ${run_dir}/${name}.sock # # The following two parameters perform authentication and # authorization of connections to the control socket. # # If not set, then ANYONE can connect to the control socket, # and have complete control over the server. This is likely # not what you want. # # One, or both, of "uid" and "gid" should be set. If set, the # corresponding value is checked. Unauthorized users result # in an error message in the log file, and the connection is # closed. # # # Name of user that is allowed to connect to the control socket. # uid = radius # # Name of group that is allowed to connect to the control socket. # gid = radius # # Access mode. # # This can be used to give *some* administrators access to # monitor the system, but not to change it. # # ro = read only access (default) # rw = read/write access. # mode = rw}
On Jun 22, 2017, at 12:29 PM, Andrew Meyer via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Hi I am running CentOS 7.3 with the latest FreeRADIUS available. I am having trouble getting radmin working getting the following error when trying to run it.
It would help to format your messages properly, instead of running all the lines together.
[root@asm-rancid01 ~]# radmin -f /etc/raddb/sites-enabled/control-socketradmin: Failed connecting to /etc/raddb/sites-enabled/control-socket: Too many levels of symbolic links
That message should be clear enough.
[root@asm-rancid01 ~]# radminradmin: Could not find control socket in /etc/raddb/radiusd.conf [root@asm-rancid01 ~]# cd /etc/raddb/sites-enabled/[root@asm-rancid01 sites-enabled]# ls -latotal 4drwxr-x---. 2 root radiusd 63 Jun 22 10:42 .drwxr-xr-x. 9 root radiusd 4096 Jun 22 10:41 ..lrwxrwxrwx. 1 root root 14 Jun 22 10:42 control-socket -> control-socket
You are aware that linking a file to itself is a bad idea, right? Alan DeKok.
I fixed it. On Thursday, June 22, 2017 12:18 PM, Alan DeKok <aland@deployingradius.com> wrote:
On Jun 22, 2017, at 12:29 PM, Andrew Meyer via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
Hi I am running CentOS 7.3 with the latest FreeRADIUS available. I am having trouble getting radmin working getting the following error when trying to run it.
It would help to format your messages properly, instead of running all the lines together.
[root@asm-rancid01 ~]# radmin -f /etc/raddb/sites-enabled/control-socketradmin: Failed connecting to /etc/raddb/sites-enabled/control-socket: Too many levels of symbolic links
That message should be clear enough.
[root@asm-rancid01 ~]# radminradmin: Could not find control socket in /etc/raddb/radiusd.conf [root@asm-rancid01 ~]# cd /etc/raddb/sites-enabled/[root@asm-rancid01 sites-enabled]# ls -latotal 4drwxr-x---. 2 root radiusd 63 Jun 22 10:42 .drwxr-xr-x. 9 root radiusd 4096 Jun 22 10:41 ..lrwxrwxrwx. 1 root root 14 Jun 22 10:42 control-socket -> control-socket
You are aware that linking a file to itself is a bad idea, right? Alan DeKok.
participants (2)
-
Alan DeKok -
Andrew Meyer