Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I can't login vsftpd as anonymous, get:
Login failed: 500 OOPS: vsftpd: refusing to run with writable anonymous root
No matter xinetd or standalone mode.
I suspicious about the account of vsftpd process:
# ps aux | grep vsftpd
root 2453 0.0 0.3 1484 380 pts/0 S 01:05 0:00 vsftpd
Is there any influence of that? How can I change it?
I make user: ftp 's home to be /mnt/file/ftp (/mnt/file--/dev/hda8), and:
# chown ftp.ftp /mnt/file/ftp
# chmod 775 /mnt/file/ftp
I don't think this is the problem, because when I change it back to /var/ftp, the problem remains.
/etc/vsftpd.ftpusers:
# Users that are not allowed to login via ftp
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
/etc/vsftpd.user_list:
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
I add a user like this: in /etc/passwd:
Qin:x:5001:5001::/mnt/file/ftp:/sbin/nologin
add Qin in vsftpd.chroot_list, and now I can just login as Qin, but still can't login as anonymous.
There is no script of vsftpd in my /etc/init.d/, I can only do this:
# killall vsftpd
# vsftpd start
then:
$ ftp localhost
Connected to localhost (127.0.0.1).
220 ready, dude (vsFTPd 1.1.0: beat me, break me)
Name (localhost:roc): anonymous
331 Please specify the password.
Password:
500 OOPS: vsftpd: refusing to run with writable anonymous root
Login failed.
421 Service not available, remote server has closed connection
ftp>
"421 service not available, remote server has closed connection.''
Means:
If an FTP server won't allow logins, it is probably configured correctly, but the problem is probably with authorizing users at login. FTP servers in current distriubtions often authorize users with the Pluggable Authentication Modules library, in which case there should be an authorization file /etc/pam.d/ftp. A generic authorization file looks like this. (The line break on the first "auth" line is for readability. The entry is actually a single, long line).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.