Cant Start Radius Server MAC OSX (snow leopard)
Hi I tried to Run Radius Server on Mac OSX Server Snow Leopard. Tried to START Radius It wont start I had made a few changed (detailed below) I went to DEBUG with following out put: server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$ I had not edited this file Can anyone help ? Thanks CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base station) The Radius Server was running I stopped the Radius Server AND using textwrangler edited /etc/raddb/clients.conf I entered the following text below the preceding "#" and above the text "client localhost {" client { ipaddr = 192.168.0.100 netmask = 32 secret = XXXX require_message_authenticator = no shortname = slr877 nastype = cisco } I saved the file closed the file Using textwrangler I edited /etc/raddb/users At the end of the file entered user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1” Saved the file closed the file Tried to restart the Radius Server and got the above error Please help Thanks -- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
As what user are you attempting to start FreeRADIUS? Most times FR is run as a daemon, so any user that tries to run FR should have permissions to look at FR's files, most time this is root or some other super user. What does radiusd -X say? Jake Sallee Godfather of Bandwidth System Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221 -----Original Message----- From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of DavidS Sent: Sunday, August 14, 2011 5:22 PM To: freeradius-users@lists.freeradius.org Subject: Cant Start Radius Server MAC OSX (snow leopard) Hi I tried to Run Radius Server on Mac OSX Server Snow Leopard. Tried to START Radius It wont start I had made a few changed (detailed below) I went to DEBUG with following out put: server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$ I had not edited this file Can anyone help ? Thanks CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base station) The Radius Server was running I stopped the Radius Server AND using textwrangler edited /etc/raddb/clients.conf I entered the following text below the preceding "#" and above the text "client localhost {" client { ipaddr = 192.168.0.100 netmask = 32 secret = XXXX require_message_authenticator = no shortname = slr877 nastype = cisco } I saved the file closed the file Using textwrangler I edited /etc/raddb/users At the end of the file entered user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1” Saved the file closed the file Tried to restart the Radius Server and got the above error Please help Thanks -- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hi JackI am root user Server Radius Logs Say Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Driver rlm_sql_sqlite (module rlm_sql_sqlite) loaded and linked Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #1 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #2 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #3 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #4 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/users[215]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User" for attribute name "" Sun Aug 14 16:59:56 2011 : Error: Errors reading /private/etc/raddb/users Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. Sun Aug 14 16:59:56 2011 : Error: Errors initializing modules radiusd -x says server10:~ admin$ radiusd -XFreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ...including configuration file /private/etc/raddb/radiusd.confUnable to open file "/private/etc/raddb/radiusd.conf": Permission deniedErrors reading /private/etc/raddb/radiusd.conf DOes that help?
To: freeradius-users@lists.freeradius.org
Subject: RE: Cant Start Radius Server MAC OSX (snow leopard) Date: Sun, 14 Aug 2011 22:56:13 +0000
As what user are you attempting to start FreeRADIUS? Most times FR is run as a daemon, so any user that tries to run FR should have permissions to look at FR's files, most time this is root or some other super user. What does radiusd -X say?
Jake Sallee Godfather of Bandwidth System Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221
-----Original Message----- From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of DavidS Sent: Sunday, August 14, 2011 5:22 PM To: freeradius-users@lists.freeradius.org Subject: Cant Start Radius Server MAC OSX (snow leopard)
Hi I tried to Run Radius Server on Mac OSX Server Snow Leopard.
Tried to START Radius
It wont start
I had made a few changed (detailed below) I went to DEBUG with following out put:
server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$
I had not edited this file
Can anyone help ?
Thanks
CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server
Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base station)
The Radius Server was running
I stopped the Radius Server
AND using textwrangler edited /etc/raddb/clients.conf
I entered the following text below the preceding "#" and above the text "client localhost {" client { ipaddr = 192.168.0.100 netmask = 32 secret = XXXX require_message_authenticator = no shortname = slr877 nastype = cisco }
I saved the file closed the file
Using textwrangler I edited /etc/raddb/users
At the end of the file entered
user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1”
Saved the file closed the file
Tried to restart the Radius Server and got the above error
Please help Thanks
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Hmmm ... are you sure you are root? I am not a MAC guy, but I do know that MACs are based off Linux (technically FreeBSD with some Steve Jobs magic on top, but who REALLY makes that distinction any more : ). That being the case root SHOULD have access to everything, so if as root you are being denied access to a file then either the file has become locked somehow (but Linux is not supposed to care about that) or you are not REALLY root. Your user may be root but it could be missing some privileges that another system user has. I have been using Fedora, Ubuntu, CentOS, etc for several years and have NEVER had a file deny root access. Root is the holy smack down you lay on a file when you want to fiddle with it no-matter-what, file permissions be d@mn3d! Then again, as I said, I am not a MAC guy so Apple could have done something special. Perhaps another MAC user here can say... Jake Sallee Godfather of Bandwidth System Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221 From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of Elizabeth Fife Sent: Sunday, August 14, 2011 7:02 PM To: freeradius-users@lists.freeradius.org Subject: RE: Cant Start Radius Server MAC OSX (snow leopard) Hi Jack I am root user Server Radius Logs Say Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Driver rlm_sql_sqlite (module rlm_sql_sqlite) loaded and linked Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #1 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #2 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #3 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #4 Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0 Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/users[215]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User" for attribute name "" Sun Aug 14 16:59:56 2011 : Error: Errors reading /private/etc/raddb/users Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. Sun Aug 14 16:59:56 2011 : Error: Errors initializing modules radiusd -x says server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf DOes that help?
To: freeradius-users@lists.freeradius.org<mailto:freeradius-users@lists.freeradius.org> Subject: RE: Cant Start Radius Server MAC OSX (snow leopard) Date: Sun, 14 Aug 2011 22:56:13 +0000
As what user are you attempting to start FreeRADIUS? Most times FR is run as a daemon, so any user that tries to run FR should have permissions to look at FR's files, most time this is root or some other super user. What does radiusd -X say?
Jake Sallee Godfather of Bandwidth System Engineer University of Mary Hardin-Baylor 900 College St. Belton, Texas 76513 Fone: 254-295-4658 Phax: 254-295-4221
-----Original Message----- From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org<mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org> [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org]<mailto:[mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org]> On Behalf Of DavidS Sent: Sunday, August 14, 2011 5:22 PM To: freeradius-users@lists.freeradius.org<mailto:freeradius-users@lists.freeradius.org> Subject: Cant Start Radius Server MAC OSX (snow leopard)
Hi I tried to Run Radius Server on Mac OSX Server Snow Leopard.
Tried to START Radius
It wont start
I had made a few changed (detailed below) I went to DEBUG with following out put:
server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$
I had not edited this file
Can anyone help ?
Thanks
CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server
Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base station)
The Radius Server was running
I stopped the Radius Server
AND using textwrangler edited /etc/raddb/clients.conf
I entered the following text below the preceding "#" and above the text "client localhost {" client { ipaddr = 192.168.0.100 netmask = 32 secret = XXXX require_message_authenticator = no shortname = slr877 nastype = cisco }
I saved the file closed the file
Using textwrangler I edited /etc/raddb/users
At the end of the file entered
user1 Cleartext-Password := "password" Service-Type = NAS-Prompt-User, cisco-avpair = "webvpn:user-vpn-group=SLRgroup1"
Saved the file closed the file
Tried to restart the Radius Server and got the above error
Please help Thanks
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
The root user in OS-X is not easily accessible. Its there, just like in FreeBSD, but you can't login or su to it normally. You can activate the root password (there are instructions on the web) then you can su to it and start things. However, the most common approach is to use sudo. The first user account created is an "admin" user that does have more privileges then any other user, but it does not have root privileges.
On 14 August 2011, at 20:11, Sallee, Stephen (Jake) wrote:
> Hmmm … are you sure you are root? I am not a MAC guy, but I do know that MACs are based off Linux (technically FreeBSD with some Steve Jobs magic on top, but who REALLY makes that distinction any more : ). That being the case root SHOULD have access to everything, so if as root you are being denied access to a file then either the file has become locked somehow (but Linux is not supposed to care about that) or you are not REALLY root. Your user may be root but it could be missing some privileges that another system user has. I have been using Fedora, Ubuntu, CentOS, etc for several years and have NEVER had a file deny root access. Root is the holy smack down you lay on a file when you want to fiddle with it no-matter-what, file permissions be d@mn3d!
>
> Then again, as I said, I am not a MAC guy so Apple could have done something special. Perhaps another MAC user here can say…
>
> Jake Sallee
> Godfather of Bandwidth
> System Engineer
> University of Mary Hardin-Baylor
> 900 College St.
> Belton, Texas
> 76513
> Fone: 254-295-4658
> Phax: 254-295-4221
>
> From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of Elizabeth Fife
> Sent: Sunday, August 14, 2011 7:02 PM
> To: freeradius-users@lists.freeradius.org
> Subject: RE: Cant Start Radius Server MAC OSX (snow leopard)
>
> Hi Jack
> I am root user
>
> Server Radius Logs Say
>
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Driver rlm_sql_sqlite (module rlm_sql_sqlite) loaded and linked
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #0
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #1
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #2
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #3
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #4
> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/users[215]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User" for attribute name ""
> Sun Aug 14 16:59:56 2011 : Error: Errors reading /private/etc/raddb/users
> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/modules/files[7]: Instantiation failed for module "files"
> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files".
> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section.
> Sun Aug 14 16:59:56 2011 : Error: Errors initializing modules
>
>
> radiusd -x says
>
> server10:~ admin$ radiusd -X
> FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07
> Copyright (C) 1999-2008 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 v2.
> Starting - reading configuration files ...
> including configuration file /private/etc/raddb/radiusd.conf
> Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied
> Errors reading /private/etc/raddb/radiusd.conf
>
> DOes that help?
>
>
>
>
> > To: freeradius-users@lists.freeradius.org
>
> > Subject: RE: Cant Start Radius Server MAC OSX (snow leopard)
> > Date: Sun, 14 Aug 2011 22:56:13 +0000
> >
> > As what user are you attempting to start FreeRADIUS? Most times FR is run as a daemon, so any user that tries to run FR should have permissions to look at FR's files, most time this is root or some other super user. What does radiusd -X say?
> >
> > Jake Sallee
> > Godfather of Bandwidth
> > System Engineer
> > University of Mary Hardin-Baylor
> > 900 College St.
> > Belton, Texas
> > 76513
> > Fone: 254-295-4658
> > Phax: 254-295-4221
> >
> > -----Original Message-----
> > From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of DavidS
> > Sent: Sunday, August 14, 2011 5:22 PM
> > To: freeradius-users@lists.freeradius.org
> > Subject: Cant Start Radius Server MAC OSX (snow leopard)
> >
> > Hi
> > I tried to Run Radius Server on Mac OSX Server Snow Leopard.
> >
> > Tried to START Radius
> >
> > It wont start
> >
> > I had made a few changed (detailed below) I went to DEBUG with following out
> > put:
> >
> > server10:~ admin$ radiusd -X
> > FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11
> > 2011 at 17:19:07
> > Copyright (C) 1999-2008 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 v2.
> > Starting - reading configuration files ...
> > including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$
> >
> > I had not edited this file
> >
> > Can anyone help ?
> >
> > Thanks
> >
> > CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server
> >
> > Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base
> > station)
> >
> > The Radius Server was running
> >
> > I stopped the Radius Server
> >
> > AND using textwrangler edited /etc/raddb/clients.conf
> >
> > I entered the following text below the preceding "#" and above the text "client localhost {"
> > client {
> > ipaddr = 192.168.0.100
> > netmask = 32
> > secret = XXXX
> > require_message_authenticator = no
> > shortname = slr877
> > nastype = cisco
> > }
> >
> > I saved the file closed the file
> >
> >
> > Using textwrangler I edited /etc/raddb/users
> >
> > At the end of the file entered
> >
> > user1 Cleartext-Password := “password”
> > Service-Type = NAS-Prompt-User,
> > cisco-avpair = “webvpn:user-vpn-group=SLRgroup1”
> >
> > Saved the file closed the file
> >
> > Tried to restart the Radius Server and got the above error
> >
> > Please help
> > Thanks
> >
> > --
> > View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-snow-leopard-tp4699245p4699245.html
> > Sent from the FreeRadius - User mailing list archive at Nabble.com.
> >
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> >
> > -
> > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
On 15 Aug 2011, at 06:31, Doug Hardie wrote:
> The root user in OS-X is not easily accessible. Its there, just like in FreeBSD, but you can't login or su to it normally.
You can sudo to root... sudo -s to get a root shell.
-Arran
>
>
> On 14 August 2011, at 20:11, Sallee, Stephen (Jake) wrote:
>
>> Hmmm … are you sure you are root? I am not a MAC guy, but I do know that MACs are based off Linux (technically FreeBSD with some Steve Jobs magic on top, but who REALLY makes that distinction any more : ). That being the case root SHOULD have access to everything, so if as root you are being denied access to a file then either the file has become locked somehow (but Linux is not supposed to care about that) or you are not REALLY root. Your user may be root but it could be missing some privileges that another system user has. I have been using Fedora, Ubuntu, CentOS, etc for several years and have NEVER had a file deny root access. Root is the holy smack down you lay on a file when you want to fiddle with it no-matter-what, file permissions be d@mn3d!
>>
>> Then again, as I said, I am not a MAC guy so Apple could have done something special. Perhaps another MAC user here can say…
>>
>> Jake Sallee
>> Godfather of Bandwidth
>> System Engineer
>> University of Mary Hardin-Baylor
>> 900 College St.
>> Belton, Texas
>> 76513
>> Fone: 254-295-4658
>> Phax: 254-295-4221
>>
>> From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of Elizabeth Fife
>> Sent: Sunday, August 14, 2011 7:02 PM
>> To: freeradius-users@lists.freeradius.org
>> Subject: RE: Cant Start Radius Server MAC OSX (snow leopard)
>>
>> Hi Jack
>> I am root user
>>
>> Server Radius Logs Say
>>
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Driver rlm_sql_sqlite (module rlm_sql_sqlite) loaded and linked
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql (sql): Attempting to connect to radius@localhost:/radius
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #0
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #1
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #2
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #3
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: Opening sqlite database /private/etc/raddb/sqlite_radius_client_database for #4
>> Sun Aug 14 16:59:56 2011 : Info: rlm_sql_sqlite: sqlite3_open() = 0
>> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/users[215]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User" for attribute name ""
>> Sun Aug 14 16:59:56 2011 : Error: Errors reading /private/etc/raddb/users
>> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/modules/files[7]: Instantiation failed for module "files"
>> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files".
>> Sun Aug 14 16:59:56 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section.
>> Sun Aug 14 16:59:56 2011 : Error: Errors initializing modules
>>
>>
>> radiusd -x says
>>
>> server10:~ admin$ radiusd -X
>> FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07
>> Copyright (C) 1999-2008 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 v2.
>> Starting - reading configuration files ...
>> including configuration file /private/etc/raddb/radiusd.conf
>> Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied
>> Errors reading /private/etc/raddb/radiusd.conf
>>
>> DOes that help?
>>
>>
>>
>>
>>> To: freeradius-users@lists.freeradius.org
>>
>>> Subject: RE: Cant Start Radius Server MAC OSX (snow leopard)
>>> Date: Sun, 14 Aug 2011 22:56:13 +0000
>>>
>>> As what user are you attempting to start FreeRADIUS? Most times FR is run as a daemon, so any user that tries to run FR should have permissions to look at FR's files, most time this is root or some other super user. What does radiusd -X say?
>>>
>>> Jake Sallee
>>> Godfather of Bandwidth
>>> System Engineer
>>> University of Mary Hardin-Baylor
>>> 900 College St.
>>> Belton, Texas
>>> 76513
>>> Fone: 254-295-4658
>>> Phax: 254-295-4221
>>>
>>> -----Original Message-----
>>> From: freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org [mailto:freeradius-users-bounces+jake.sallee=umhb.edu@lists.freeradius.org] On Behalf Of DavidS
>>> Sent: Sunday, August 14, 2011 5:22 PM
>>> To: freeradius-users@lists.freeradius.org
>>> Subject: Cant Start Radius Server MAC OSX (snow leopard)
>>>
>>> Hi
>>> I tried to Run Radius Server on Mac OSX Server Snow Leopard.
>>>
>>> Tried to START Radius
>>>
>>> It wont start
>>>
>>> I had made a few changed (detailed below) I went to DEBUG with following out
>>> put:
>>>
>>> server10:~ admin$ radiusd -X
>>> FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11
>>> 2011 at 17:19:07
>>> Copyright (C) 1999-2008 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 v2.
>>> Starting - reading configuration files ...
>>> including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$
>>>
>>> I had not edited this file
>>>
>>> Can anyone help ?
>>>
>>> Thanks
>>>
>>> CHANGES I MADE PRIOR TO GETTING THIS ERROR First time I used the Radius Server
>>>
>>> Using Server Admin selected the Radius service - it appeared as expected identified and I entered a local time capsule (That appeared as a base
>>> station)
>>>
>>> The Radius Server was running
>>>
>>> I stopped the Radius Server
>>>
>>> AND using textwrangler edited /etc/raddb/clients.conf
>>>
>>> I entered the following text below the preceding "#" and above the text "client localhost {"
>>> client {
>>> ipaddr = 192.168.0.100
>>> netmask = 32
>>> secret = XXXX
>>> require_message_authenticator = no
>>> shortname = slr877
>>> nastype = cisco
>>> }
>>>
>>> I saved the file closed the file
>>>
>>>
>>> Using textwrangler I edited /etc/raddb/users
>>>
>>> At the end of the file entered
>>>
>>> user1 Cleartext-Password := “password”
>>> Service-Type = NAS-Prompt-User,
>>> cisco-avpair = “webvpn:user-vpn-group=SLRgroup1”
>>>
>>> Saved the file closed the file
>>>
>>> Tried to restart the Radius Server and got the above error
>>>
>>> Please help
>>> Thanks
>>>
>>> --
>>> View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-snow-leopard-tp4699245p4699245.html
>>> Sent from the FreeRadius - User mailing list archive at Nabble.com.
>>>
>>> -
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>>>
>>> -
>>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>> -
>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>
Arran Cudbard-Bell
a.cudbardb@freeradius.org
RADIUS - Half the complexity of Diameter
I really appreciate your thoughts - it seems to me whatever I am admin or root this surely cant be a normal output for debugging. Does it seem likely that you would have to activate a root user level on a mac to run a Radius server? Have others had to do that that you know of? Without root I think I may have made some progress. What I was trying to do was add the following to the file "users" user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1” Afterwards the Radius logs shows Sun Aug 14 23:46:52 2011 : Error: /private/etc/raddb/users[221]: Parse error (reply) for entry user1: Expected end of line or comma Sun Aug 14 23:46:52 2011 : Error: Errors reading /private/etc/raddb/users Sun Aug 14 23:46:52 2011 : Error: /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" Sun Aug 14 23:46:52 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". Sun Aug 14 23:46:52 2011 : Error: /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. Sun Aug 14 23:46:52 2011 : Error: Errors initializing modules And debuging shows server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf server10:~ admin$ If i take the entry I made out of the users file, the log files show NO errors (the last log line after starting the radius server is) Sun Aug 14 17:48:29 2011 : Info: Ready to process requests. BUT With OR Without my entry to "users" debugging shows the same output (as above) Please help Thanks PS for the mac users who need it in terminal window type: sudo passwd root Enter Password: <existing admin pw> Changing password for root New password: <whatever root pw you want> Verify password: <whatever root pw you want> NOTE Setting the root password also enables root login at the same time. I recommend you don't use the root account unless you have to. When I put it back in the Radius logs show -- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Hi,
Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf
sometimes its not permissions, but the code reading the configurations files encounters an error - eg when reading radiusd.conf - which pulls in all the files, and the error lies there..
CHANGES I MADE PRIOR TO GETTING THIS ERROR
exactly....
Using textwrangler I edited /etc/raddb/users
yes.....
user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1”
...and then you saw the errors in the debug log regarding this entry - this entry is wrong (or the server cannot read it due to incorrect. maybe user1 Cleartext-Password := “password” Service-Type = "NAS-Prompt-User", cisco-avpair = “webvpn:user-vpn-group=SLRgroup1” ? alan
Hi Alan, David Looks like the type of quote used just might be the issue... “password” is pretty in MS Word, but UNIX prefers "password" Kind regards Marius Pesé Mindspring Computing -----Original Message----- From: freeradius-users-bounces+marius=mindspring.co.za@lists.freeradius.org [mailto:freeradius-users-bounces+marius=mindspring.co.za@lists.freeradius.org] On Behalf Of Alan Buxey Sent: Monday, August 15, 2011 10:12 AM To: FreeRadius users mailing list Subject: Re: Cant Start Radius Server MAC OSX (snow leopard) Hi,
Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf
sometimes its not permissions, but the code reading the configurations files encounters an error - eg when reading radiusd.conf - which pulls in all the files, and the error lies there..
CHANGES I MADE PRIOR TO GETTING THIS ERROR
exactly....
Using textwrangler I edited /etc/raddb/users
yes.....
user1 Cleartext-Password := “password” Service-Type = NAS-Prompt-User, cisco-avpair = “webvpn:user-vpn-group=SLRgroup1”
...and then you saw the errors in the debug log regarding this entry - this entry is wrong (or the server cannot read it due to incorrect. maybe user1 Cleartext-Password := “password” Service-Type = "NAS-Prompt-User", cisco-avpair = “webvpn:user-vpn-group=SLRgroup1” ? alan - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks Alan Buxey and Marius Pesé - definite progress!! Alan - I think you were right to include the " " around the "NAS-Prompt-User” it was not there in my version download from the internet And you were both right about the type of quotation marks “webvpn:user-vpn-group=SLRgroup1” vs "webvpn:user-vpn-group=SLRgroup1" Once I corrected the entry in this way all of the Radius log entries disappeared !!! (Which i assume is a good thing) Again I think this is a big step forwards THANK YOU (and to other for their thoughts) I have not got further in testing but I note that Debugging even after the corrections still says the same regarding the reading of config files server10:~ admin$ radiusd -X FreeRADIUS Version 2.1.3, for host i386-apple-darwin10.0, built on Apr 11 2011 at 17:19:07 Copyright (C) 1999-2008 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 v2. Starting - reading configuration files ... including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf -- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
Hi,
including configuration file /private/etc/raddb/radiusd.conf Unable to open file "/private/etc/raddb/radiusd.conf": Permission denied Errors reading /private/etc/raddb/radiusd.conf
check permissions on the /private , /private/etc and /private/etc/raddb directory as well as the radiusd.conf file - they need to be readable by the daemon that radiusd runs as (in the config) - and...executable bit set to (for directories..IIRC) alan
Thanks Jake Sallee "Hmmm … are you sure you are root?" Despite seeming to me unlikely you were right - (i still hate logging in as root but it was necessary) Thanks Arran Cudbard-Bell "You can sudo to root... sudo -s to get a root shell" thanks for got that. From a bash prompt the output is much better but ends in /private/etc/raddb/users[220]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User??? " for attribute name "" Errors reading /private/etc/raddb/users /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. } } Any thoughts? THANKS AGAIN! -- View this message in context: http://freeradius.1045715.n5.nabble.com/Cant-Start-Radius-Server-MAC-OSX-sno... Sent from the FreeRadius - User mailing list archive at Nabble.com.
DavidS wrote:
/private/etc/raddb/users[220]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User??? " for attribute name "" Errors reading /private/etc/raddb/users /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. } }
Any thoughts?
$ man users Read the documentation. You've typed random text into the "users" file. This won't work. The format of the users file is documented in the "man" page, in the comments at the top of the file *you edited*, and in the examples in that file. Follow the examples. They work. Alan DeKok.
Thanks Alan You are of course right. Being new to this i did not realize the very tight restrictions on formatting and type. Fixing the entry in "users" has done the trick. Radius server on mac oxs 10.6.x now authenticates users accessing login to the router. I will now go on to try do the same for Wpa2 access to our wifi access point Thanks David
Date: Tue, 16 Aug 2011 00:07:58 -0400 From: aland@deployingradius.com To: freeradius-users@lists.freeradius.org Subject: Re: Cant Start Radius Server MAC OSX (snow leopard)
DavidS wrote:
/private/etc/raddb/users[220]: Parse error (check) for entry Service-Type: Invalid octet string "NAS-Prompt-User??? " for attribute name "" Errors reading /private/etc/raddb/users /private/etc/raddb/modules/files[7]: Instantiation failed for module "files" /private/etc/raddb/sites-enabled/inner-tunnel[111]: Failed to find module "files". /private/etc/raddb/sites-enabled/inner-tunnel[34]: Errors parsing authorize section. } }
Any thoughts?
$ man users
Read the documentation. You've typed random text into the "users" file. This won't work.
The format of the users file is documented in the "man" page, in the comments at the top of the file *you edited*, and in the examples in that file.
Follow the examples. They work.
Alan DeKok.
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
participants (8)
-
Alan Buxey -
Alan DeKok -
Arran Cudbard-Bell -
DavidS -
Doug Hardie -
Elizabeth Fife -
Marius Pesé -
Sallee, Stephen (Jake)