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

During the setting up vsftpd(2.3.5-3) daemon in Debian Wheezy, I found the following error 500 OOPS: vsftpd: refusing to run with writable root inside chroot() when you try to open ftp connection to the server.This appears when chroot_local_user=YES option is enabled in /etc/vsftpd.conf.Many people had the same problem.This is BUG which is already reported.We can fix this problem with additional patch.

vim /etc/apt/sources.list

add
deb http://ftp.cyconet.org/debian wheezy-updates main non-free contrib

apt-get update


aptitude install -t wheezy-updates debian-cyconet-archive-keyring vsftpd

vim /etc/vsftpd.conf
add

allow_writeable_chroot=YES

service vsftpd restart


root@debian:~# dpkg -l | grep vsftpd
ii vsftpd 2.3.5-10~update.1 i386 lightweight, efficient FTP server written for security

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

This error occurs during mysqldump process,

mysqldump: Got error: 1044: Access denied for user ‘root’@’localhost’ to database ‘information_schema’ when using LOCK TABLES

add the following parameter to mysqldump command “–single-transaction” to solve the problem.

how to reset root password on debian wheezy

During the pc boot up process, when grub boot loader appears press “e” to edit,
find the line which begin with linux and on the end add init=/bin/bash

example: linux /boot/vmliznu-3.2.0-4-686-pae root=UUID=8cbe7996-107b-4d22-9281-f0962e4917dd ro initrd=/install/initrd.gz quiet init=/bin/bash

press ctrl+x to boot, this will drop you on the command prompt

mount -o remount,rw /

passwd

reboot