[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to run programs on startup not as root
M>> Hi list.
M>> Well, my subject says it all.
M>> I need to run a process during startup time and to have someone else
M>> then root as the pid owner.(so he can kill it later).
M>>
M>> How can i do that ?
M>> Usually i put commands in the rc.local file, but as i know the process
M>> will be own by root.(or am i mistaken?)
Try this:
su user <<END
command1
command2
command3
END
commands will be executed as "user".
--
frodo@sharat.co.il \/ There shall be counsels taken
Stanislav Malyshev /\ Stronger than Morgul-spells
phone +972-3-9316425 /\ JRRT LotR.
http://sharat.co.il/frodo/ whois:!SM8333
=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il