gk>> this should be changed to:  su - user <<END
gk>> 
gk>> this '-' will cause the user's shell (and thus the user's shell startup
gk>> script) to be executed before executing the following commands.
gk>> otherwise, root's shell and environment will be used.

Or should not. This depends if you want to execute all the stuff in their
init files on so early stages of system startup. You may get in problems
if something runs from the .bashrc which doesn't find, say, hostname
because named didn't start yet, and then locks you up until it times
out... You get the idea :)

Moreover, if you have dedicated user for the process (like "apache" for
httpd or "named" for bind), it's rc files possible have nothing useful
and are direct copy of skeleton files, and many chances you don't need
them at all. The decision is on you. If it runs without "-", IMHO it's
better to run it so. 

On the other side, if you application somehow trusts $HOME, etc. (which is
generally bad idea - it should take it from pwent if needed) - you better
do "-".
-- 
[EMAIL PROTECTED]      \/  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 [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to