Fixing 500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
2015-01-08 16:49
393 查看
After upgrading vsftpd or vsftpd-ext you may be getting the following message when trying to log in.
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
This is due to the following update:
- Add stronger checks for the configuration error of running with a writeable
root directory inside a chroot(). This may bite people who carelessly turned
on chroot_local_user but such is life.
The problem is that your users root directory is writable, which isn’t allowed when using chroot restrictions in the new update.
To fix this you must either remove write permissions on the users root directory with the following command, replacing the directory with your users root:
chmod a-w /home/user
Or you can work around this security check by adding either of the two below into your configuration file.
For the standard vsFTPd build (vsftpd):
allow_writeable_chroot=YES
For the extended vsFTPd build (vsftpd-ext):
allow_writable_chroot=YES
Removing the write permission on the root isn’t a perfect solution as doing this can cause a few problems with things that need to write to the root directory, such as the bash history file or some graphical environments.
Dmitriy has
suggested 3 ways to also overcome this problem, be sure to check them out.
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
This is due to the following update:
- Add stronger checks for the configuration error of running with a writeable
root directory inside a chroot(). This may bite people who carelessly turned
on chroot_local_user but such is life.
The problem is that your users root directory is writable, which isn’t allowed when using chroot restrictions in the new update.
To fix this you must either remove write permissions on the users root directory with the following command, replacing the directory with your users root:
chmod a-w /home/user
Or you can work around this security check by adding either of the two below into your configuration file.
For the standard vsFTPd build (vsftpd):
allow_writeable_chroot=YES
For the extended vsFTPd build (vsftpd-ext):
allow_writable_chroot=YES
Removing the write permission on the root isn’t a perfect solution as doing this can cause a few problems with things that need to write to the root directory, such as the bash history file or some graphical environments.
Dmitriy has
suggested 3 ways to also overcome this problem, be sure to check them out.
相关文章推荐
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot 原因及解决办法初析[ubuntu, vsftpd, ftp server]
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot () 不能上传文件和文件夹
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()解决方案
- Centos 7之后的vsftpd报500 OOPS: vsftpd: refusing to run with writable root inside chroot
- Centos 7 ftp连接出现500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
- vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
- vsftpd 服务器报错:500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
- 解决 500 OOPS: vsftpd: refusing to run with writable root inside chroot()[ubuntu]
- Vsftpd下如何把用户限制在家目录中 后出现500 OOPS: vsftpd: refusing to run with writable root inside chroot 原因及解决办法初析[ubuntu, vsftpd, ftp server]
- 【转】vsftp 遇到错误 500 OOPS: vsftpd: refusing to run with writable root inside chroot()--不错
- 解决 500 OOPS: vsftpd: refusing to run with writable root inside chroot()[ubuntu]
- Linux联接vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误