LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2010, 10:47 AM   #1
jenniekingsland
LQ Newbie
 
Registered: Oct 2008
Posts: 21

Rep: Reputation: 0
Radius has started in debugging mode upon boot and cannot login


Hi,

Not sure if you can help with this one, I have searched Google and also your archives but cannot find an answer to my problem.

I have created a Radius startup script in /etc/init.d for Debian which looks like this:

#!/bin/sh
/usr/local/sbin/radiusd -X /usr/local/var/log/radius/radacct/ -d /usr/local/etc/raddb/

Now this works but when I boot my server it shows as ‘ready to process requests’ and it doesn’t login. I can’t get a login prompt. If I do a CTRL –C to try close this it doesn’t work and just shows CTRL C on the screen, I can type in kill radius but nothing happens.

I guess it’s because my script is in debugging mode, most of the suggestions for a script said I should use:

#!/bin/sh
/usr/local/sbin/radiusd -a /usr/local/var/log/radius/radacct/ -d /usr/local/etc/raddb/

However the radiusd –a doesn’t work and if I try to run using command radiusd –a in it comes up and says ‘invalid command’ and I don’t have the option to use the –a

So if this script runs on my server, I could connect to the server through a putty session via port 22 and log on fine and do what I need too, but if I try to connect to the server directly after boot its just sitting on ‘ready to process requests’ and I cannot do anything when directly at the server. On one particular server I didn’t have the network confg right so I couldn’t putty to it and now I’m a bit stuck. Will I need to rebuild my server? As I can’t break out of this ‘ready to process requests’ and I cannot login as its just sitting there, I have tried connecting through serial management via my laptop but I cant do anything this way either the only way I could do anything was if I could get through to the server on putty.

There must be a way when directly at the server to cancel the radius and get logged in? As I’ve mentioned CTRL C doesn’t work. I can get to the ok prompt but not sure what command to use and if I could change the network config at the ok prompt or if I could somehow cancel the startup script at the ok prompt? I thought I could use the init commands to start the server without the script starting but the init commands don’t work and the server just sits there.

Please help out if you can?

Also I guess I shouldn’t be using radius –X in my startup script, to prevent this problem is there something else I should be using? I tried using radius –x (the small x) and I hit enter and then no process for radius starts so I’m a bit confused.

Thank you
 
Old 10-11-2010, 11:50 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Google again with keyword 'start-stop-daemon' or have a look at /etc/init.d to see how to write a init script in Debian.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't login via radius because of weird characters amigota SUSE / openSUSE 3 08-19-2009 03:42 AM
Why text mode installation can not started? backpacker Fedora - Installation 1 06-26-2009 11:50 AM
Runnig a program in debugging mode at Kernel level Siva4Linux Linux - Wireless Networking 8 11-30-2006 02:56 AM
Login redirect RADIUS directed suggestions. dkierans Linux - Security 1 02-06-2006 02:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration