<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <font size="+1">Thank you very much for the quick answers, this is
      why I checked here before opening a bug report.<br>
      Being an old IRIX guy I have always called the init.d scripts
      directly, I guess I will have to change my ways.<br>
    </font><br>
    On 15/10/2012 21:28, Jonathan Billings wrote:
    <blockquote cite="mid:20121016012833.GJ22584@negate.org" type="cite">
      <pre wrap="">On Mon, Oct 15, 2012 at 08:59:35PM -0400, Cale Fairchild wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Today I discovered a peculiar issue with the vsftpd init scripts. My
vsftpd daemon stopped authenticating properly because when I
restarted the service as root the vsftpd daemon inherited the
current root environment which included redirected TMP variable set
to /root/tmp. Of course when it was set that way the selinux context
was incorrect and the permissions on the directory itself was very
restrictive. I worked around the problem by resetting my TMP and
TMPDIR variables to /tmp and restarting the service again but I am
wondering if this should be filed as a bug?
</pre>
      </blockquote>
      <pre wrap="">
This is one of the reasons you should always use '/sbin/service'
instead of running the /etc/rc.d/init.d/<scriptname> directly.
The 'service' script scrubs your environment and sets the CWD to /
before executing the init script.  The only environment variables from
your root shell that are preserved are $TERM and $LANG.

--
Jonathan Billings <a class="moz-txt-link-rfc2396E" href="mailto:jsbillin@umich.edu"><jsbillin@umich.edu></a>

_______________________________________________
rhelv6-list mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rhelv6-list@redhat.com">rhelv6-list@redhat.com</a>
<a class="moz-txt-link-freetext" href="https://www.redhat.com/mailman/listinfo/rhelv6-list">https://www.redhat.com/mailman/listinfo/rhelv6-list</a>
</pre>
    </blockquote>
  </body>
</html>