Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Well, I have spent most of the day trying to get vsftpd working. One problem after the other. I'll chalk it up to me being new to Linux and be happy that I have learned along the way. Unfortunately, still not working properly.
If I have no vsftpd in /etc/xinetd.d and reboot, I still see "Starting vsftpd for vsftpd" a few lines after xinetd is starting. I am not clear why the system is still trying to start vsftpd when it is not there? It seems random. One time it was running even without any vsftpd in /etc/xinetd.d and another time, it was not.
So then I attempt t[root@sforsgren-linux-01 sforsgren]# /etc/init.d/vsftpd status
vsftpd dead but subsys locked
wait = no
I then start it up manually after ensuring that I have the below set in /etc/vsftpd/vsftpd.conf.
Due to the "vsftpd dead but subsys locked", I execute rm /var/lock/subsys/vsftpd
ftp -u sforsgren-linux-01 (if I forget -u, I get Kerberos security warnings - not sure if there is a better way to avoid that either). Basic functionality seems to work fine locally.
However, if I then go to my Windows XP box on my same internal network (Linksys router) and do ftp sforsgren-xp-01, I get back: ftp: connect: unknown error number. So, really I am not sure things are working right if I cannot ftp to the machine but can only use the ftp client on the same box with the ftp server. Hmm...
Even though it still doesn't work from another machine, I get excited and decide that I want to start this up using xinetd so that I don't have to start it myself.
I first remove:
from /etc/vsftpd/vsftpd.conf and then create the /etc/xinetd.d/vsftpd file with the below.
Now, I reboot and I still see the same message Starting vsftpd for vsftpd. However, when the machine is logged in and I do a ps, I don't see it running still. If I try to do a status, all I get is:
[root@sforsgren-linux-01 sforsgren]# /etc/init.d/vsftpd status
vsftpd dead but subsys locked
When I reboot, it says that it failed to shutdown vsftpd.
I'm confused. I can start it manaully and it more or less works (but not from any other machine) but I cannot get it to start from xinetd.d and actually see the process running after a reboot. Oddly, sometimes when it is NOT in xinetd.d, it still is running without me having to start it after a reboot. In the most recent reboot, I had listen=YES back as I thought I would have to start it manually, and it still started automatically!
My /etc/xinetd.d file looks like the below (when I have it there).
# vsftpd is the secure FTP server.
disable = no
socket_type = stream
wait = no
user = root
wait = no = /usr/sbin/vsftpd
per_source = 5
instances = 200
banner_fail = /etc/vsftpd/busy_banner
log_on_success += PID HOST DURATION
log_on_failure += HOST
Thanks in advance for helping me to see the errors of my ways.