[Remind-Fans] Remind & Anacron & Non-Root-Owned Files - HAWLP!

Justin Alcorn justin at jalcorn.net
Fri Dec 15 15:41:25 EST 2006


Serge Arsenault wrote:
> Hi Mike,
> 
> One way of doing this is to use the su command when invoking the remind
> command and specifying which user it should be run as:
> 
> su <username> -c "remind <remind args>"
> 
> This will effectively run the remind command as if it were run by
> username.
> 
> Serge

You'll want to make it

su - <user> -c "remind [args]"

the '-' makes sure that the task runs with the correct environment for 
the specified user.



More information about the Remind-fans mailing list