Re[2]: [KLUG Members] Running a program as a specified user at boot.
   
    Tim Gray
     
    members@kalamazoolinux.org
       
    Thu, 18 Oct 2001 08:09:11 -0400
    
    
  
It occurred to me that a ls -l might be useful to those who might
doubt that I actually set the SUID bit.  I did, didn't I?
 -rwsr-xr-x    1 admin    admin          36 Oct 17 14:06 govnc
--  Tim Gray
Wednesday, October 17, 2001, 2:18:26 PM, you wrote:
>>At boot I want to run a script as uid 501 so that the program starts
>>with thier variables and permissions etc...
>>How do I do this?  I figure I need to put something in /etc/rc.local,
>>but what?
ATW> su -l {username} -c {command}
ATW> since the startup scripts run as root, this shouldn't give you any trouble
ATW> You can also change the owner of the binary to {user} and setuid {u+s} and the
ATW> program will "always" run as that user, no matter who starts it.
ATW> On a kerbized network you can grant permissions to execute the binary as a given
ATW> user to any other user via the ksu facility
>>The script will be in the user's (and only the users's) path and is
>>located at /home/$USER/bin/$SCRIPT, for example...
ATW> su or ksu with "-l" should develope the given user's default environment.
ATW> Systems and Network Administrator
ATW> Morrison Industries
ATW> 1825 Monroe Ave NW
ATW> Grand Rapids, MI. 49505
ATW> _______________________________________________
ATW> Members mailing list
ATW> Members@kalamazoolinux.org
ATW>