Re: Exec-Program problem

2009-04-22 Thread Nirmal
  Thanks man,   done. --- On Wed, 4/22/09, Alan DeKok wrote: From: Alan DeKok Subject: Re: Exec-Program problem To: "FreeRadius users mailing list" Date: Wednesday, April 22, 2009, 5:25 PM Nirmal wrote: ... > Wed Apr 22 17:05:03 2009 : Debug: Exec-Program-Wait: plaintext: We

Re: Exec-Program problem

2009-04-22 Thread Alan DeKok
Nirmal wrote: ... > Wed Apr 22 17:05:03 2009 : Debug: Exec-Program-Wait: plaintext: Wed Apr > 22 17:05:03 2009 : Error: Exec-Program: FAILED to execute > /etc/raddb/getmac: Exec format error ... > #/bin/bash You can't run that program from a shell prompt, either. You have a typo. It should be:

Re: Exec-Program problem

2009-04-22 Thread Nirmal
%u %i | ++--+---++-+   where to check syntax for exec-program ? --- On Wed, 4/22/09, Nirmal wrote: From: Nirmal Subject: Exec-Program problem To: "freeradius users" Date: Wednesday, April 22, 2009, 5:11 PM Hi,   I am running freeradiu

Exec-Program problem

2009-04-22 Thread Nirmal
Hi,   I am running freeradius-server-2.1.1-7.   ++--+---++-+ | id | username | attribute | op | value   | ++--+---++-+ |  1 | spark    | Exec-Program-Wait | := | /

RE: strange Exec-Program problem

2005-05-09 Thread Seferovic Edvin
@lists.freeradius.org Subject: Re: strange Exec-Program problem Hi Edgars, I use the Exec-Program attribute in my /etc/raddb/acct_users for extra features DEFAULT Acct-Status-Type == Start Exec-Program = "/bin/bash /usr/local/scripts/radius/radius.sh" hope this helps Edgars wrote: > oke

Re: strange Exec-Program problem

2005-05-09 Thread Jandre Olivier
Hi Edgars, I use the Exec-Program attribute in my /etc/raddb/acct_users for extra features DEFAULT Acct-Status-Type == Start Exec-Program = "/bin/bash /usr/local/scripts/radius/radius.sh" hope this helps Edgars wrote: okey, copied the same script file to the RADIUS server's box..the same problem

Re: strange Exec-Program problem

2005-05-09 Thread Edgars
okey, copied the same script file to the RADIUS server's box..the same problem occured: Error: Exec-Program: FAILED to execute Does someone have working setup similar to mine using Exec-Program attribute? DB_server<-->RADIUS_server<-->NAS Edgars Alan DeKok wrote: Edgars <[EMAIL PROTECT

Re: strange Exec-Program problem

2005-05-03 Thread Alan DeKok
Edgars <[EMAIL PROTECTED]> wrote: > On which machine is the script actually ecexuted - on the one i'm runnig > the RADIUS server or where the DB is located? On the RADIUS server. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Re: strange Exec-Program problem

2005-05-03 Thread Edgars
from the debug mode i'm getting the following: radius_xlat: '/var/radius/scripts/count.php edgars 10.5.8.103' Exec-Program: /var/radius/scripts/count.php edgars 10.5.8.103 Exec-Program output: Exec-Program: FAILED to execute /var/radius/scripts/count.php: No such file or directory Exec-Program-Wa

Re: strange Exec-Program problem

2005-05-02 Thread Dustin Doris
> Hello, > > when trying to execute some script on each user login attempt using > local DB everythings works as it supposed to do. But if using another > RADIUS server as specifying to use the previously mentioned DB (like > remote DB), getting the following errors in the log file: > > Error: Exe

strange Exec-Program problem

2005-05-02 Thread Edgars
Hello, when trying to execute some script on each user login attempt using local DB everythings works as it supposed to do. But if using another RADIUS server as specifying to use the previously mentioned DB (like remote DB), getting the following errors in the log file: Error: Exec-Program: FA

Re: Exec-Program problem..

2004-01-23 Thread Andrei Loukinykh
Fri, 23 Jan 2004, Alan DeKok писал(а): > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > So I started FR as root:daemon and gave the same own's to the program. > > Still the same. > > May be FR changes effective uid/gid for the external program it runs...? > > No. > > Can you say what platf

Re: Exec-Program problem..

2004-01-23 Thread Alan DeKok
Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > So I started FR as root:daemon and gave the same own's to the program. > Still the same. > May be FR changes effective uid/gid for the external program it runs...? No. Can you say what platform you're running on? Alan DeKok. - List info/subs

Re: Exec-Program problem..

2004-01-23 Thread Andrei Loukinykh
Fri, 23 Jan 2004, Albert Miles Enabe писал(а): > In my Linux box, my radiusd starts up as a daemon, so I did this: > > chown daemon:root setexpiredate > > where setexpiredate is an external C program specified in Exec-Program > in radiusd.conf. May be it's stupid, but I tried to run FR as roo

Re: Exec-Program problem..

2004-01-23 Thread Albert Miles Enabe
>Thu, 22 Jan 2004, Alan DeKok ÐÉÓÁÌ(Á): > > > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > > I'm trying to get my external program to work ( which is in fact - > > > a billing program for users' accounting) > > > > Which version are you using? If you're not using 0.9.3, upgrade to > > i

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Alan DeKok писал(а): > Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > > I'm trying to get my external program to work ( which is in fact - > > a billing program for users' accounting) > > Which version are you using? If you're not using 0.9.3, upgrade to > it, and then see if

Re: Exec-Program problem..

2004-01-22 Thread Alan DeKok
Andrei Loukinykh <[EMAIL PROTECTED]> wrote: > I'm trying to get my external program to work ( which is in fact - > a billing program for users' accounting) Which version are you using? If you're not using 0.9.3, upgrade to it, and then see if the problem persists. Alan DeKok. - List info/s

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Christian Richter писал(а): > Better should be to let Freeradius access the needed files as nobody. > Other idea is to put the binary in a group, where it can read the files > (chown : ). > To get the user-id simply type " ps -ux " and search for freeradius. Hmmm .. I starte

Re: Exec-Program problem..

2004-01-22 Thread Christian Richter
Andrei Loukinykh wrote: As in default configuration. nobody/nogroup. Seems I need to change it to something with root privileges... to let my program operate in /var/run.. or elsewhere it needs to. Thank you, I'll try ... Best regards, Andy Better should be to let Freeradius access the needed

Re: Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Thu, 22 Jan 2004, Dennis Roos писал(а): > On Thu, 2004-01-22 at 14:25, Andrei Loukinykh wrote: > > > What changes happens with external program execution when FR runs in > > debug mode? > When run in debug mode, AFAIK freeradius doesn't drop root priviliges. > > What user/group does your freer

Re: Exec-Program problem..

2004-01-22 Thread Dennis Roos
On Thu, 2004-01-22 at 14:25, Andrei Loukinykh wrote: > What changes happens with external program execution when FR runs in > debug mode? When run in debug mode, AFAIK freeradius doesn't drop root priviliges. What user/group does your freeradius run as when started without -X -- Regards, Denn

Exec-Program problem..

2004-01-22 Thread Andrei Loukinykh
Hello freeradius-users, I'm trying to get my external program to work ( which is in fact - a billing program for users' accounting) I have in /etc/acct_users: DEFAULT Acct-Status-Type == Start Exec-Program = "/usr/bin/billing -d" I couldn't get it work the right way until todays afterno