Unsolved
This post is more than 5 years old
122 Posts
0
2975
500 OOPS: vsftpd: refusing to run with writable anonymous root
Getting error 500 OOPS: vsftpd: refusing to run with writable anonymous root.
OneFS 6.5.5.12
Can anyone help with the error & how to resolve it ?
isi ftp list
accept-timeout 60
allow-anon-access YES
allow-anon-upload YES
allow-dirlists YES
allow-downloads YES
allow-local-access YES
allow-writes YES
always-chdir-homedir YES
anon-chown-username root
anon-root-path /ifs/home/ftp
anon-umask 007
ascii-mode off
connect-timeout 60
data-timeout 300
dirlist-localtime NO
dirlist-names hide
file-create-perm 0666
local-root-path local user home directory
local-umask 007
server-to-server NO
session-timeout 300
user-config-dir
denied-user-list (none)
limit-anon-passwords NO
anon-password-list (disabled)
chroot-local-mode No local users chrooted; exception list inactive
chroot-exception-list anonymous
Peter_Sero
1.2K Posts
1
July 10th, 2013 09:00
anon-chown-username root
probably should become:
anon-chown-username ftp
(and just in case make sure the dir is owned by ftp, chown ftp /ifs/home/ftp )
Peter
chughh
122 Posts
0
July 10th, 2013 10:00
still same error if chown ftp:wheel
udi-1# chown root:wheel /ifs/home/ftp
udi-1# ls -al /ifs/home/
total 8
drwxr-xr-x 4 root wheel 28 Jul 10 01:17 .
drwxrwxrwx 7 root wheel 95 Jul 10 10:25 ..
drwxr-xr-x 2 admin admin 16 Jul 10 01:17 admin
drwxr-xr-x 4 root wheel 31 Jul 10 01:17 ftp
then able to connect.
Can only upload to ftp but download giving error (Copying files from remote side failed.Failed to open file.)
udi-1# pwd
/ifs/home/ftp/incoming
udi-1# ls -al
total 6
drwxrwxrwx 2 root wheel 61 Jul 10 17:03 .
drwxr-xr-x 4 root wheel 31 Jul 10 01:17 ..
-rw------- 1 root wheel 0 Jul 10 15:12 1.txt
-rw------- 1 root wheel 0 Jul 10 14:59 2.txt
-rw------- 1 ftp wheel 0 Jul 10 17:03 New Text Document.txt
download only possible from pub ..
Jakezhang
5 Posts
1
April 22nd, 2015 02:00
Please try
# chmod o-w /ifs/home/ftp
after removing the others write permission, it should work.
Here is my repro:
v7112-1# isi ftp allow-anon-access yes
allow-anon-access: NO -> YES
v7112-1# isi ftp list
accept-timeout 60
allow-anon-access YES
allow-anon-upload YES
allow-dirlists YES
allow-downloads YES
allow-local-access YES
allow-writes YES
always-chdir-homedir YES
anon-chown-username root
anon-root-path /ifs/home/ftp
anon-umask 077
ascii-mode off
connect-timeout 60
data-timeout 300
dirlist-localtime NO
dirlist-names hide
file-create-perm 0666
local-root-path local user home directory
local-umask 077
server-to-server NO
session-support YES
session-timeout 300
user-config-dir
denied-user-list (none)
limit-anon-passwords NO
anon-password-list (disabled)
chroot-local-mode No local users chrooted; exception list inactive
chroot-exception-list (none)
7112-1# chmod 777 /ifs/home/ftp
v7112-1# ftp 127.0.0.1
Connected to 127.0.0.1.
220-Isilon OneFS v7.1.1.2
220
Name (127.0.0.1:root): anonymous
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
ftp: Login failed.
ftp> bye
500 OOPS: child died
v7112-1#
v7112-1#
v7112-1# chmod o-w /ifs/home/ftp
v7112-1# ftp 127.0.0.1
Connected to 127.0.0.1.
220-Isilon OneFS v7.1.1.2
220
Name (127.0.0.1:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>