[rhelv6-list] Curious vsftpd isssue

Cale Fairchild cfairchild at brocku.ca
Tue Oct 16 10:58:51 UTC 2012


Thank you very much for the quick answers, this is why I checked here 
before opening a bug report.
Being an old IRIX guy I have always called the init.d scripts directly, 
I guess I will have to change my ways.

On 15/10/2012 21:28, Jonathan Billings wrote:
> On Mon, Oct 15, 2012 at 08:59:35PM -0400, Cale Fairchild wrote:
>> 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?
> 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<jsbillin at umich.edu>
>
> _______________________________________________
> rhelv6-list mailing list
> rhelv6-list at redhat.com
> https://www.redhat.com/mailman/listinfo/rhelv6-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/rhelv6-list/attachments/20121016/ae8bd611/attachment.htm>


More information about the rhelv6-list mailing list