ok, with the modified command
new strace.log - Pastebin.com
Printable View
ok, with the modified command
new strace.log - Pastebin.com
You forgot to terminate a previous session?? * points down *
You can find processes and pids with: lsof -itcp@0.0.0.0:5555 . Probably need root for this.Quote:
Originally Posted by Herculeon's strace log
why, yes! yes I did forget to terminate the previous session!! LOL
sorry about that.
Try this one:
new strace.log - Pastebin.com
Did you try to connect to it with the above trace? And did you receive the same error? I'm not seeing that much. But that could be just all there is.
Yes, I just tried a connection again so I could copy the exact text out.
Command: USER anonymous
Response: 331 Please specify the password.
Command: PASS **************
Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Error: Critical error
Error: Could not connect to server
Say, here is a dumb question. The command you gave me, I ran it as su. Should I run it as a normal user? I might know 1 or 2 things about *nix and still a relative newb but I am just trying to make sure I am not making a rudimentary mistake.
Yes please do. I made this command JUST to run it as a normal user. The error you are receiving is probably bogus.
Ok, here it is run as a normal user
as normal user - Pastebin.com
However, filezilla still shows:
Command: USER anonymous
Response: 331 Please specify the password.
Command: PASS **************
Response: 500 OOPS: vsftpd: refusing to run with writable root inside chroot()
Error: Critical error
Error: Could not connect to server
Strace get's us nowhere. Run the following commands as a normal user:
EDIT: Forgot to create the appropate files. Confirm in your reply that you did 'touch /tmp/emptyconfig' before running vsftpd! (please)Quote:
touch /tmp/emptyconfig
/usr/sbin/vsftpd -olisten_port=5555 -opasv_min_port=5556 -opasv_max_port=5557 -oport_enable=NO \
-olisten=true -orun_as_launching_user=true -oanon_world_readable_only=false -odual_log_enable=yes \
-olog_ftp_protocol=yes -ovsftpd_log_file=/tmp/vsftpd.log -oxferlog_file=/tmp/vsftpd.log -owrite_enable=true \
-oanon_upload_enable=true -oanon_mkdir_write_enable=true -oanon_other_write_enable=true -oseccomp_sandbox=no \
-olocal_enable=no /tmp/emptyconfig | tail -F /tmp/vsftpd.log
I did
touch ~/.emptyconfig
touch ./vsftpd.log
touch /tmp/emptyconfig
I did the command and got no output. rebooted even did the three touches again still no output. rebooted and did it again, hoping something would catch and still no output. Nothing in the vsftp.log in the the tmp directory and/or in the directory I ran the commands from. The emptyconfig was in fact empty. It does say "500 OOPS: cannot read config file: tail" when I run the command you requested.
You have to make sure that the user running vsftpd can read the file '/tmp/emptyconfig' and has read/write to the file '/tmp/vsftpd.log'. The file '/tmp/emptyconfig' is empty on purpose. We specify all the commands on the commandline. However, vsftpd insists it has a config file so we give it one. To test both conditions, the following commands should yield no output at all:
Then try again with the above commandline.Quote:
echo vsftpd > /tmp/vsftpd.log
cat /tmp/emptyconfig