Re: Start Freeradius at boot

2009-09-30 Thread Paul . Blalock
So I went back to a clean install of Fedora 11, followed the instructions  
on installing freeradius via yum.

Then I issued the command:

chkconfig --list radiusd (and got the following)
radiusd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

so i entered sudo chkconfig radiusd on
and then I got
chkconfig --list radiusd
radiusd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

I then restart the computer to verify that it works correctly, and it does  
not. I still have to log into an account before the service starts.

Is there anything else I can try to get this working correctly?
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-30 Thread José Johnny RANDRIAMAMPIONONA
I think that editing   /etc/rc.local will start freeradius as a service. u v
just to add sbin/rc.radiusd start .
Best

2009/9/30 paul.blal...@gmail.com

 So I went back to a clean install of Fedora 11, followed the instructions
 on installing freeradius via yum.
 Then I issued the command:

 chkconfig --list radiusd (and got the following)
 radiusd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

 so i entered sudo chkconfig radiusd on
 and then I got
 chkconfig --list radiusd
 radiusd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

 I then restart the computer to verify that it works correctly, and it does
 not. I still have to log into an account before the service starts.
 Is there anything else I can try to get this working correctly?
 -
 List info/subscribe/unsubscribe? See
 http://www.freeradius.org/list/users.html




-- 
JJohnny RANDRIAMAMPIONONA
Phone: +212663682554, +212533158575
National School of Applied Sciences
ZIP 1818 TANGIER 9
-Morocco ---
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-30 Thread John Dennis

On 09/30/2009 12:52 PM, paul.blal...@gmail.com wrote:

So I went back to a clean install of Fedora 11, followed the
instructions on installing freeradius via yum.
Then I issued the command:

chkconfig --list radiusd (and got the following)
radiusd 0:off 1:off 2:off 3:off 4:off 5:off 6:off

so i entered sudo chkconfig radiusd on
and then I got
chkconfig --list radiusd
radiusd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

I then restart the computer to verify that it works correctly, and it
does not. I still have to log into an account before the service starts.
Is there anything else I can try to get this working correctly?


As previously asked before, what does service radiusd status report 
after booting. If it says the service is not running then what does 
sudo service radius start report? Did it fail? If you have most likely 
have a configuration problem which is preventing the server from 
starting. If so then what is the output of /usr/sbin/radiusd -X


If logging into a desktop session has any impact whatsoever then 
something is horribly wrong, this is not normal at all. Are you sure you 
didn't mess with Startup Applications?


--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


RE: Start Freeradius at boot

2009-09-30 Thread Danner, Mearl

Have you checked the appropriate logs?

Any info in /var/log/radius/radius.log? Please post the contents.

How do you start it and as what user?


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-30 Thread John Dennis

On 09/30/2009 01:19 PM, José Johnny RANDRIAMAMPIONONA wrote:

I think that editing   /etc/rc.local will start freeradius as a service.
u v just to add sbin/rc.radiusd start .


No, don't do this. Please use the standard System V init mechanisms only.

/sbin/chkconfig
/sbin/service

--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-30 Thread John Dennis

On 09/30/2009 01:57 PM, Danner, Mearl wrote:


Have you checked the appropriate logs?

Any info in /var/log/radius/radius.log? Please post the contents.


good suggestion


How do you start it and as what user?


Since this is Fedora and uses System V initscript it will start as root 
and then drop privileges to the radiusd user.


However, if he initially ran the server *manually* as non-root it might 
have created files with the wrong ownership and permissions which would 
block the server from initializing when run properly. The most likely 
files improperly created would be the automatic certificate creation.


--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-30 Thread John Dennis
It occurred to me there is one there is one issue you might need to be 
aware of, bootstrapping. The server with the default configuration will 
not successfully start without certificates. radiusd will automatically 
create temporary certificates the first time it is run for you if you 
don't already have certificates installed. However this only is done if 
the server is started in debug mode. Therefore you have to run 
/usr/sbin/radiusd -X *as root* after the first time you perform an 
install to cause the bootstrapping to occur. The RPM should probably do 
this for you, but it currently doesn't. Once your certs are established 
this never has to be repeated.


--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-29 Thread Paul . Blalock
I appreciate your insight, and I might have to go with a pre-built package  
after all. But I did go ahead and issue the commands, and when I run

chkconfig --list radiusd This is what I get.
radiusd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

According to the links that you sent me, this is what it is supposed to  
say, but the radiusd service still does not start at boot time, it still  
requires me to log on to the gnome desktop as root before the service will  
start.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-29 Thread Ivan Kalik
 According to the links that you sent me, this is what it is supposed to
 say, but the radiusd service still does not start at boot time, it still
 requires me to log on to the gnome desktop as root before the service will
 start.

Radiusd doesn't require you to do anything. That's how *you* configured
it to start - as a desktop application. If you don't know how to write
management scripts for deamons (and where are they supposed to go) use
prebuilt packages which will do this for you. If you want to learn how -
find a list/forum that is appropriate for that.

Ivan Kalik
Kalik Informatika ISP

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-29 Thread John Dennis

On 09/29/2009 10:42 AM, paul.blal...@gmail.com wrote:

I appreciate your insight, and I might have to go with a pre-built
package after all. But I did go ahead and issue the commands, and when I
run
chkconfig --list radiusd This is what I get.
radiusd 0:off 1:off 2:on 3:on 4:on 5:on 6:off

According to the links that you sent me, this is what it is supposed to
say, but the radiusd service still does not start at boot time, it still
requires me to log on to the gnome desktop as root before the service
will start.


Logging on the the gnome desktop as root is insanely insecure, never do 
it. As a matter of fact in current Fedora releases you're prohibited 
from starting a desktop session as root. Instead you should open a 
terminal window and then su, or better add yourself to the sudoers list 
and sudo your commands.


We'll assume you're in the sudoers list. What happens when you issue:

service radiusd status

Is it running, according to you not, just checking though. If it's not 
starting a boot time with it enabled via chkconfig then it's probably 
not starting successfully. What happens when you:


sudo service radiusd start

Does it start? If so I can't explain what's going on because that's 
virtually identical to what should happen at boot time.


Do you have SELinux enabled and in *enforcing* mode?

BTW, I have no idea if the initscript shipped in the FreeRADIUS 
distribution will work as we provide our own (another reason to use our 
RPM's). I also know we're going to be reworking the initscript to comply 
with LSB requirements.




--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-28 Thread Alan Buxey
Hi,
 I am trying to get freeradius to start at boot time so that I don't have 
 to log in for it to start up. I saw a previous post that said to
 “Manually add the links in /etc/rc[0-6].d.”


 I am not sure what links this is referring to though, so I am at a  
 standstill as to how to do this.

dpends on what OS you have - and, under Linux, which distro you have.

if you have installed from a package, then that package should have
supplied the required start/stop scripts for the system and then you can
use the OS's chosen service solution to configure whether/when the service
is started. 

if you have built from source, then there are a few scripts supplied
in the source tarball that can be used - eg there is a script for
RedHat - just copy that script into /etc/init.d and do a 'chkconfig radiusd on'

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-28 Thread Paul . Blalock

Hi,

I am trying to get freeradius to start at boot time so that I don't have
to log in for it to start up. I saw a previous post that said to
“Manually add the links in /etc/rc[0-6].d.”




I am not sure what links this is referring to though, so I am at a
standstill as to how to do this.


dpends on what OS you have - and, under Linux, which distro you have.

if you have installed from a package, then that package should have
supplied the required start/stop scripts for the system and then you can
use the OS's chosen service solution to configure whether/when the service
is started.

if you have built from source, then there are a few scripts supplied
in the source tarball that can be used - eg there is a script for
RedHat - just copy that script into /etc/init.d and do a 'chkconfig radiusd  
on'


alan

Guess I did forget to include that. I am using Fedora 11, installed from  
CD, and when I

do a 'chkconfig radiusd on', it says no such file or directory.

Paul
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-28 Thread Alan Buxey
Hi,

 Guess I did forget to include that. I am using Fedora 11, installed from  
 CD, and when I
 do a 'chkconfig radiusd on', it says no such file or directory.

did you install FreeRADIUS via yum and a repository
or from source?  if from the repsository you should have
a selectable service with eg the standard Fedora system startup tools
- maybe they've decided to call it 'freeradius' or 'freeradius2'
rather than radiusd?

if from source, then the install part (make install) wont handle your
OS directory - you'll need to copy the script (and maybe edit it
according to install path choices made) from the contrib directory
eg redhat/rc.radiusd-redhat to the correct place - /etc/init.d/

i'd note now that its not just the startup item - theres also a logrotate
script which ties into the system logrotate cron stuff to ensure that freeradius
logs (eg /var/log/radius/ get rotated when needed - eg each day for 90 days
retention)

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-28 Thread Paul . Blalock

did you install FreeRADIUS via yum and a repository
or from source?


Downloaded freeradius-server-2.1.7.tar.gz, extracted to home directory,
and then ./configure, make, make install.


if from the repsository you should have
a selectable service with eg the standard Fedora system startup tools
- maybe they've decided to call it 'freeradius' or 'freeradius2'
rather than radiusd?

There is a Startup Applications where I can add programs, but it  
doesn't start
them until you log on to the machine and this doesn't work unless you log  
into

the gui as root.


if from source, then the install part (make install) wont handle your
OS directory - you'll need to copy the script (and maybe edit it
according to install path choices made) from the contrib directory
eg redhat/rc.radiusd-redhat to the correct place - /etc/init.d/

i'd note now that its not just the startup item - theres also a logrotate
script which ties into the system logrotate cron stuff to ensure that  
freeradius

logs (eg /var/log/radius/ get rotated when needed - eg each day for 90 days
retention)

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: Start Freeradius at boot

2009-09-28 Thread Alan Buxey
hi,

note sure why you are reversing the email conversation tags,
however

you installed from source

so, in the source directory (where you ran ./configure) there is a
redhat directory. in that directory is an rc. file - that needs to be copied
into the /etc/init.d

eg cp rc.whatever /etc/init.d/radiusd

then use the appropriate tool to ensure this starts by default 
(I use chkconfig - from the old school) but Fedora does have 
system admin tools to ensure that daemons start up when the system starts
up - i know..i've had to use their tool just once or twice. since I cant
use such tools att he end of a 14.4 baud dual up to a comms centre across
the pond, i use SSH with eg chkconfig extensively)

you'll want to then check everything is A OKAY by eg

service radiusd start

service radiusd status

service rediusd restart


the first thing will test it can be started with the script. as i said before
the script was written some time back and some directories might not exist
and some permissions might be wrong! if the script fails or 'status' test fails 
then 
check the /var/log/radius/radiusd.log to see maybe reasons why.

once its all running fine, then the service will restart fine upon reboot. even
if the system is a VMWare instance on a Max OSX server - doesnt matter what its 
on,
the basics will always be the same with that distro.

alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: Start Freeradius at boot

2009-09-28 Thread John Dennis
The quoting in this thread is so confused I'm not going to try and 
unravel it.


The Sytem - Preferences - Startup Applications menu item is only for 
desktop applications running in a session. That is quite a bit different 
than system services, sometimes called daemons. Typically the radius 
service is installed under the name radiusd following the convention 
that daemons have a d appended to them. That means you're trying to 
control a system service not a session based desktop application. This 
is done at the command prompt level with chkconfig or via a gui with 
system-config-services.


You might have looked at:

http://wiki.freeradius.org/Red_Hat_FAQ#How_do_I_start_and_stop_the_FreeRADIUS_service.3F

If you build from source and you don't know what a System V Initscript 
is then the algorithm is:


1) Stop

2) Install the pre-built package with all this stuff already figured 
out, tested, and done for you so you don't have to learn how to build 
from source *and* integrate with the OS, all the while making a lot of 
learning curve mistakes.


Installing pre-built packages typically takes 1 minute of your time. 
Wasn't that easier?


Fedora, RHEL, and CentOS all have current packages available. See 
http://wiki.freeradius.org/Red_Hat_FAQ



--
John Dennis jden...@redhat.com

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html


Re: start freeradius on boot

2004-03-29 Thread Marc Werner
which linux-distribution do you use?

Marc

Am Montag, 29. März 2004 13:51 schrieb Sander Groenhaut:
 Hello,

 I would like FreeRadius to boot automatically when the system starts,
 but I don't get it. Does anybody know
 how to make it?

 Sander

 Encuentra lo que buscas en la Guía de Empresas y Profesionales LYCOS-QDQ
 http://qdq.lycos.es/buscador.cfm?pCliente=lycos

-- 
Marc Werner
[EMAIL PROTECTED]
ICQ#190044536
http://tuxxy.in.itzehoe.de


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html