su

Steven W. Orr steveo at syslang.net
Tue Sep 26 13:24:26 UTC 2006


On Tuesday, Sep 26th 2006 at 13:38 +0930, quoth Tim:

=>On Mon, 2006-09-25 at 15:45 -0400, Steven W. Orr wrote:
=>> After all that, if it works, please never use su the way you described
=>> above. At the very least use su - -c etc...
=>
=>Having seen that in another topic, made me wonder about something I'm
=>doing.  My /etc/rc.local file has a string of lines in it like the
=>following:  su tim -c "/usr/bin/fetchmail -d 900"
=>
=>Should I be doing it like this, instead:
=>su - tim -c "/usr/bin/fetchmail -d 900"

It may or may not be important depending on whether the execution of 
fetchmail may in any way depend on things in the environment that is 
established when user tim logs in.  In this case it's likely not an issue, 
but that is the answer to the question.




More information about the fedora-list mailing list