Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ruo91/554fae8e7c0949409f6b to your computer and use it in GitHub Desktop.
Save ruo91/554fae8e7c0949409f6b to your computer and use it in GitHub Desktop.
Ubuntu - refusing to run with writable root inside chroot()
Step 1. Remove the vsftpd
root@ruo91:~# apt-get remove vsftpd
Step 2. Install vsftpd v3.x
root@ruo91:~# wget http://us.archive.ubuntu.com/ubuntu/pool/main/v/vsftpd/vsftpd_3.0.2-14ubuntu1_amd64.deb
root@ruo91:~# dpkg -i vsftpd_3.0.2-14ubuntu1_amd64.deb
Step 3. Add in the vsftpd.conf
root@ruo91:~# echo "seccomp_sandbox=NO" >> /etc/vsftpd.conf
Step 4. Start
root@ruo91:~# service vsftpd start
Step 5. Test
root@ruo91:~# ftp -4 localhost
Connected to localhost.
220 welcome to blah ftp service.
Name (localhost:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls -al
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
drwxr-xr-x 2 0 106 4096 May 11 10:29 .
drwxr-xr-x 2 0 106 4096 May 11 10:29 ..
226 Directory send OK.
ftp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment