Error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot() [SOLVED]

Cpanel/Whm License $3/mo Plesk License $10/mo Cloudlinux License $5/mo

Pre-Flight Check
  • These instructions are intended specifically for solving the error: 500 OOPS: vsftpd: refusing to run with writable root inside chroot().
  • I’ll be working from a sxi.io Web Self Managed Fedora 20 server, and I’ll be logged in as root.

The Fix

This error may occur when attempting to connect to a vsftpd FTP server that is configured to jail (prevent from accessing other directories) each FTP user. It is best practice to create Linux users specifically for FTP, that can’t login via SSH. For example, if you wanted to remove SSH access for testuser, then you’d use the following command:

usermod -s /sbin/nologin testuser

However, that won’t address the problem listed in the error. To do that, you must make the user’s home directory read only. Assuming the username is testuser and the home directory is /home/testuser, then execute the following command:

chmod a-w /home/testuser

For good measure, be sure to restart vsftpd:

systemctl restart vsftpd

Alternative Fix

Alternatively, you can bypass the writable check in the vsftpd config file by running the following two commands:

echo 'allow_writeable_chroot=YES' >> /etc/vsftpd/vsftpd.conf

systemctl restart vsftpd

Related posts

China, Blockchain & The Holy Grail of Marketplace Lending

SXI ADMIN

Untethered? Bitcoin Shrugs Off Hack to Push Above $8,000

SXI ADMIN

Print a Web Page From a Shell Prompt

SXI ADMIN

Mt Gox CEO Claims to be ‘Victim’ in Bitcoin Exchange Demise

SXI ADMIN

HowTo: Skip Bash For Loop

SXI ADMIN

BlackRock: Crypto Use Could Grow As Market Matures

SXI ADMIN

Explain: php_self or $_SERVER[‘PHP_SELF’] Usage

SXI ADMIN

Annyeong Bitcoin: South Korea, Canada and a Changing Crypto Market

SXI ADMIN

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More