Re: Exec-Program attribute

2002-02-20 Thread Alan DeKok

=?big5?B?p2SoS+am?= [EMAIL PROTECTED] wrote:
 Could anyone tell me how to use the Exec-Program attribute?

  Grab the latest CVS snapshot, and read 'scripts/exec-program-exit'

  Alan DeKok.

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



Re: Exec-Program attribute

2002-02-20 Thread Chad Miller

html
On Wed, Feb 20, 2002 at 08:36:40PM +0800, ?d?K?? wrote:
 Hi,
 
 I am just a beginner.

Yes.  blinkDon't send HTML!

 Could anyone tell me how to use the Exec-Program attribute?
 I want to use freeradius with some other program so I set the USERS files as follows:
 
 Bob  Auth-Type:=Local, Password=asfd, Exec-Program:=/bin/ls  /root/test
 Reply-Message=hello

Are you sure that the user the server is running as can write to /root/test ?
I haven't checked the code, but redirection man not work, anyway, if the
code isn't running a shell.  If you must do redirection, you may have to use
/bin/sh -c ...

Alan's suggestion of looking at the tarball-included example file should help.

 Thanking in advance

Thank us by changing your mailer to send text ONLY./blink


-- 
Chad Miller [EMAIL PROTECTED]
url: http://www.advogato.org/person/cmiller/
  ``Having a smoking section in a restaurant is 
like having a peeing section in a pool.''

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