Re: Execute script every time a specified user logs in (FreeBSD 6.1)

2007-01-17 Thread Todor Dragnev
You can attach script to auth.info;authpriv.info in syslog.conf and listen for login events... man syslog.conf(5) - look for vertical bar(pipe) functionality On Jan 17, 2007, at 18:46 , George Vanev wrote: On 1/17/07, Pieter de Goeje <[EMAIL PROTECTED]> wrote: On Wednesday 17 January 2007

Re: Execute script every time a specified user logs in (FreeBSD 6.1)

2007-01-17 Thread George Vanev
On 1/17/07, Pieter de Goeje <[EMAIL PROTECTED]> wrote: On Wednesday 17 January 2007 11:49, George Vanev wrote: > Every time user X (for example) logs in the system > I want to be executed some script. > The user must not have the permission to > change this behavior. > Also the script must be ru

Re: Execute script every time a specified user logs in (FreeBSD 6.1)

2007-01-17 Thread Pieter de Goeje
On Wednesday 17 January 2007 11:49, George Vanev wrote: > Every time user X (for example) logs in the system > I want to be executed some script. > The user must not have the permission to > change this behavior. > Also the script must be run as root. > Something like crontab, but depending on logi

Execute script every time a specified user logs in (FreeBSD 6.1)

2007-01-17 Thread George Vanev
Every time user X (for example) logs in the system I want to be executed some script. The user must not have the permission to change this behavior. Also the script must be run as root. Something like crontab, but depending on logins, not time Any ideas?! -- George Vanev