From: Jon Fullmer <jon@jonfullmer.com>
To: admin <linux-admin@vger.kernel.org>
Subject: Re: telnet server,ftp server
Date: Tue, 05 Oct 2004 11:22:06 -0600 [thread overview]
Message-ID: <BD88345E.10FCD%jon@jonfullmer.com> (raw)
In-Reply-To: <a5bcf5da041005093656ee6eb2@mail.gmail.com>
on 10/5/04 10:36 AM, Stone at xstonedogx@gmail.com wrote:
>> What is the diff. between :[sf@df]#service httpd start
>> and the command
>> [sdf@sdfd]#httpd
>
> The former runs the init script (/etc/init.d/ or somewhere similar
> depending on your system) that starts HTTPD. It may do more than just
> start the daemon, for example, it may specify a config file, empty a
> log file, add a virtual IP to your NIC, or anything else that needs to
> be done. The only way to know what it actually does is to read the
> init script.
>
> The latter simply runs the daemon.
Please forgive me if I'm going too basic. I noticed that this hasn't been
brought up yet, but by default, both Telnet and FTP servers are typically
serviced by inetd (or xinetd), and not started via the init.d scripts.
Check your /etc/inetd.conf file (or in the /etc/xinetd.d directory). Both
inetd (older) and xinetd (newer) listen for requests for different services.
When the request is received, it starts up the respective daemon.
A side note, though. You should really consider using SSH instead of telnet
(or FTP, for that matter). OpenSSH (which is almost always installed by
default) runs as a daemon (typically, /etc/init.d/ssh start or
/etc/init.d/sshd start). To remotely connect to the host, type "ssh
username@host". To FTP files to or from the host, type "sftp
username@host". Or, if you know the file's location, and you just want to
issue a remote copy command (to or from), type "scp <file>
username@host:<path>"
Hope that helps.
- Jon
prev parent reply other threads:[~2004-10-05 17:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-05 7:27 telnet server,ftp server kaushal
2004-10-05 12:44 ` Adam Lang
2004-10-05 16:36 ` Stone
2004-10-05 17:22 ` Jon Fullmer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=BD88345E.10FCD%jon@jonfullmer.com \
--to=jon@jonfullmer.com \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).