changed permission of /etc/raddb/mac_entries now getting wrong format error. Wed Apr 22 17:21:27 2009 : Auth: Login OK: [spark] (from client localhost port 0 cli 00:19:D1:4A:53:F8) Wed Apr 22 17:21:27 2009 : Info: +- entering group post-auth {...} Wed Apr 22 17:21:27 2009 : Info: [exec] expand: %u -> spark Wed Apr 22 17:21:27 2009 : Info: [exec] expand: %i -> 00:19:D1:4A:53:F8 Wed Apr 22 17:21:27 2009 : Debug: Exec-Program output: Wed Apr 22 17:21:27 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error Wed Apr 22 17:21:27 2009 : Debug: Exec-Program-Wait: plaintext: Wed Apr 22 17:21:27 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error Wed Apr 22 17:21:27 2009 : Debug: Exec-Program: returned: 1 in my previous version i was using the same format. +----+----------+-------------------+----+-------------------------+ | id | username | attribute | op | value | +----+----------+-------------------+----+-------------------------+ | 1 | spark | Exec-Program-Wait | := | /etc/raddb/getmac %u %i | +----+----------+-------------------+----+-------------------------+ where to check syntax for exec-program ? --- On Wed, 4/22/09, Nirmal <nirmal_909@yahoo.com> wrote: From: Nirmal <nirmal_909@yahoo.com> Subject: Exec-Program problem To: "freeradius users" <freeradius-users@lists.freeradius.org> Date: Wednesday, April 22, 2009, 5:11 PM Hi, I am running freeradius-server-2.1.1-7. +----+----------+-------------------+----+-------------------------+ | id | username | attribute | op | value | +----+----------+-------------------+----+-------------------------+ | 1 | spark | Exec-Program-Wait | := | /etc/raddb/getmac %u %i | +----+----------+-------------------+----+-------------------------+ radisud -XX -d /etc/raddb/ Wed Apr 22 17:05:03 2009 : Auth: Login OK: [spark] (from client localhost port 2 cli 00:19:D1:4A:53:F8) Wed Apr 22 17:05:03 2009 : Info: +- entering group post-auth {...} Wed Apr 22 17:05:03 2009 : Info: [exec] expand: %u -> spark Wed Apr 22 17:05:03 2009 : Info: [exec] expand: %i -> 00:19:D1:4A:53:F8 Wed Apr 22 17:05:03 2009 : Debug: Exec-Program output: Wed Apr 22 17:05:03 2009 : Error: Exec-Program: FAILED to execute /etc/raddb/getmac: Exec format error 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 Wed Apr 22 17:05:03 2009 : Debug: Exec-Program: returned: 1 Wed Apr 22 17:05:03 2009 : Info: [exec] Login incorrect (external check said so) Wed Apr 22 17:05:03 2009 : Info: ++[exec] returns reject Wed Apr 22 17:05:03 2009 : Info: Delaying reject of request 1 for 1 seconds file /etc/raddb/getmac contains following with execute+radiusd permission #/bin/bash echo "$1 --- $2 ----- done" >> /etc/raddb/mac_entries What could be wrong? Nirmal Patel | Mumbai -----Inline Attachment Follows----- - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html