• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

May 20, 2013 by Sharad Chhetri 2 Comments

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

Today I was configuring the vsftp server in Ubuntu 12.04 LTS with chroot enable. But I stuck with issue even I enable the “chroot_local_user=YES ” in /etc/vsftpd.conf

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

To solve this issue ,I installed the latest package and add one more parameter in /etc/vsftpd.conf
Below are the steps of the solution-

(1) Download the latest vsftpd deb package from the repository as per your operation system architecture.I am using the i386 hence I have downloaded the package for i386 and install it
Login into server and become a superuser root.

$sudo su –
#cd /root
#wget http://security.ubuntu.com/ubuntu/pool/main/v/vsftpd/vsftpd_3.0.2-1ubuntu2_i386.deb
#dpkg -i /root/vsftpd_3.0.2-1ubuntu2_i386.deb

(2) Enable two parameters in /etc/vsftpd.conf

chroot_local_user=YES
allow_writeable_chroot=YES (note this option you have to write yourself in /etc/vsftpd.conf file)

(3) Now restart the vsftpd service.

service vsftpd restart

For reference purpose given below is my complete /etc/vsftpd.conf configuration.
Even if you only write the given below contents as it is in /etc/vsftpd.conf file it will work , ๐Ÿ™‚

root@ubuntu:/# cat /etc/vsftpd.conf
listen=YES
anonymous_enable=NO
local_enable=YES
write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
chroot_local_user=YES
secure_chroot_dir=/var/run/vsftpd/empty
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
allow_writeable_chroot=YES
root@ubuntu:/#

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. How to configure FTP server in CentOS 6.3 – vsftpd server
  2. How to install and configure FTP server with chroot in Ubuntu 12.04 LTS
  3. How to configure vsftpd server with virtual user mysql authentication in CentOS 6
  4. create a system account below uid 500 on RHEL/CentOS/Scientific Linux
  5. Setup Master Slave Chroot BIND DNS in CentOS 6 or Red Hat 6
  6. Forgot root password ,Reset it in Run level 1
  7. Read the file inside compressed .gz files without extract
  8. How to create a search box inside page in WordPress
  9. postgres database backup script using database user password inside
  10. Bash : print variable value inside single and double quotes

Filed Under: FTP Server, Linux Tagged With: vsftp

Reader Interactions

Comments

  1. Stefan Iancu says

    July 30, 2013 at 11:38 am

    Thank you, saved my day!

    Reply
    • sharad chhetri says

      July 30, 2013 at 3:31 pm

      Welcome Stefan

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Our Social Media Presence

  • Facebook
  • GitHub
  • Twitter

Linux Command

What is Linux Internal And External Command

Linux Basic Commands With Examples For Every Beginner

tr command to convert lines to space , tab and vertical tab

smbpasswd command not found on CentOS 7 and RHEL 7

Solution : semanage command not found

Unix / Linux : How to print duplicate lines from file

More Posts from this Category

You Might Like These Articles!

simplecodesyntax wordpress plugin

SimpleCodeSyntax : My Another WordPress Plugin

Install Nginx

How To Install Nginx On Ubuntu 22.04 LTS

Install Latest Git package in Ubuntu Operating System

How To Always Install Latest Git Package In Ubuntu Operating System

Bash script for installing VirtualBox on Ubuntu 22.04 LTS Desktop

Install VirtualBox On Ubuntu 22.04 LTS Desktop (Bash Script)

libfuse

dlopen(): error loading libfuse.so.2 – Got Error On Ubuntu

Failed to open/create the internal network

VirtualBox Error: Failed to open/create the internal network

Always Useful Tips And Tricks

Set GRUB password after installation of CentOS/Red Hat

postgres database backup script using database user password inside

error command ‘gcc’ failed with exit status 1 in Ubuntu

4 Different commands to find system uptime in linux

Read the file inside compressed .gz files without extract

Convert hyphen to underscore in between all filenames shell script

This kernel requires an x86-64 CPU but only detected an i686 CPU

Explore 90+ Article On "Linux Tips And Tricks"

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy