Unfortunately "su -c cmd user" does not work for me. Some errors arise due
to the fact that the user's environment is not passed to the "cmd" program.
My "cmd" program needs to inherit the user's login environment. 

For the same reason, setting the program setuid does not work either. 

As far as cron goes, how would you set cron to start the process after each
system reboot? 

Michael Martinez
CSREES/ISTM/USDA
(202) 720-6223


-----Original Message-----
From: Steven W. Orr [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, December 24, 2002 3:49 PM
To: '[EMAIL PROTECTED]'
Subject: Re: how to run a start up script as a non-privledged user?

On Tue, 24 Dec 2002, Mike Burger wrote:

=>You could use cron, instead...or you could set the program setuid to the 
=>nonprivileged user.
=>
=>On Tue, 24 Dec 2002, Martinez, Michael - CSREES/ISTM wrote:
=>
=>> Is there a way to make a /etc/rc.d/init.d script run as a
non-priviledged
=>> user without invoking a wrapper that uses C to invoke setuid calls?
=>>  
=>> Michael Martinez
=>> CSREES/ISTM/USDA
Use su -c cmd user

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
[EMAIL PROTECTED]



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to