Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
Not only I'm new to this forum but I'm also new to Linux (although I've been doing more and more linux work lately). I've recently installed SLES 9 (at GA level, not SP4) running on the mainframe under z/VM. I need to have an FTP server up and running. I made the necessary changes to the vsftpd.conf file but when I was going to bounce the server for the changes to take effect, I realized it was not running to begin with. So I tried to issue the "service vsftpd start" command but cmd "service" was not available. I did some research and found out that I could go to "/etc/init.d" and start the vsftpd service from there. The thing is, there is no vsftpd file in /etc/init.d on this system. I went to yast and verified that vsftpd was installed. I also issued command "rpm -q vsftpd" and the result was vsftpd-1.2.1-69.3 (I believe this means that vsftpd is indeed installed). My question is, what am I missing? How come the vsftpd.conf file exists, the command "vsftpd" also exists in /usr/sbin but there is no vsftpd in /etc.init.d? How can I get vsftpd started?
Thanks for the info., Nuwen. There is a vsftpd file in /etc/xinetd.d that looks like this:
# default: off
# The vsftpd FTP server serves FTP connections. It uses
# normal, unencrypted usernames and passwords for authentication.
# vsftpd is designed to be secure.
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/sbin/vsftpd
# server_args =
# log_on_success += DURATION USERID
# log_on_failure += USERID
# nice = 10
disable = no
Now, what do I do with it? I tried to simply type vsftpd from within this directory and received the following error:
lnx9s1:/etc/xinetd.d # vsftpd
500 OOPS: could not bind listening IPv4 socket
The FTP server is running because I was able to issue the FTP command but I can not figure out how to stop/start it.
Ok, here's the short version of what xinetd is. It's a wrapper daemon (but more powerful). You register the protocols, ports and programs with it. And, it starts watching the ports. In this case, it watches 21 (ftp). When it gets an incoming request for port 21, it launches the proper program (vsftpd in this case) and passes the connection off to it. The benefit is that you don't have to have a bunch of daemon programs watching ports all the time. xinetd does the watching and only spawns the program when it receives a request.
The short answer to your question is, you don't start or stop the vsftpd, xinetd does it for you. Most daemon programs can also be run outside of xinetd, but I don't know about vsftpd. Since there's no init file in init.d, I would assume that the preferred way is to run it through xinetd (which is a good option). Proftpd is the one I know more of, and it can be run either way.
Oh, if you do want to disable ftpd for a while (or just make xinetd stop listening so you can manually start an ftpd), change the disable=no to yes and restart xinetd.
I need to read better. The bind error you got was because xinetd was already listening to port 21. Only one program can bind to a specific port at any one time.
Last edited by nuwen52; 06-30-2009 at 04:04 PM.
Reason: added disable answer.