vsftpd: "failed to open xferlog"

Issues related to applications and software problems
dmark
Posts: 1
Joined: 2018/02/13 17:52:26

vsftpd: "failed to open xferlog"

Postby dmark » 2018/02/13 18:05:39

Environment:
  • VirtualBox 5.2.6 on MacOS 10.13.3
  • CentOS 7.4 "minimal install" VM with no security policy applied
  • three new VMs cloned from the base VM.
I installed vsftpd on all three clones, enabled it and restart the VMs. On two of them FTPing to localhost gets:

Code: Select all

500 OOPS: Failed to open xferlog log file: /var/log/xferlog

On the 3rd VM, it works fine. vsftpd is running as root at the moment so it should have no trouble accessing /var/log. All three systems have a /var/log/xferlog, all mode 600, perms root:root.

Disabling the xferlog works around the issue, and I'm guessing it has something to do with SElinux, though I don't understand why it is a problem on two of the VMs, but not the other. They were all cloned from the same source.

hunter86_bg
Posts: 1109
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: vsftpd: "failed to open xferlog"

Postby hunter86_bg » 2018/02/14 05:34:01

Can you run:

Code: Select all

restorecon -RFvv /var/log

and see if any logs has been relabeled ?