Re: Subject: Re: Execute script every time a specified user logs in (FreeB SD 6.1)

2007-01-22 Thread Damian Wiest
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 11:49, George Vanev wrote: Every time user X (for example) logs in the system I want to execute some script. The user must not have the permission to

Subject: Re: Execute script every time a specified user logs in (FreeB SD 6.1)

2007-01-17 Thread [EMAIL PROTECTED]
A simple technique is to have /etc/profile check for user X and for him source another file (containing the commands which X can't modify). Have root own this file and allow all others to only read and execute it. sudo is unnecessary. This is inelegant in that it has a general and