View Single Post
  #3   (View Single Post)  
Old 31st May 2008
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

If you know what user account it needs to be run as, or have a special user for running it:


/etc/rc.local ->

su username -c /path/program args


You can also use su to use a specific login class with su's -c switch, e.g.

su -c loginclass username -c /path/prog args

every thing after username is passed to the shell, the man page is useful.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote