top of page
Search
dimulsugoogsturfit

Ncftp Centos Installation: How to Transfer Files Securely and Efficiently



  • The programs are free, but we would appreciate a donation if you find themuseful.Your support allows us to keep maintaining the project!DocumentationFAQ - Frequently Asked Questions

  • How to report a bug

  • Change Log

  • NcFTP - FTP browser program

  • NcFTPGet - command-line utility program

  • NcFTPPut - command-line utility program

  • NcFTPLs - command-line utility program

  • NcFTPBatch - background FTP program for individual users

  • NcFTPSpooler - background batch FTP service for systems

  • License Agreement - The Clarified Artistic License

  • DownloadVisit our Download page to obtain the source code or compiled executables. If you find it useful, please consider ourNcFTPd Serversoftware if you wish to provide FTP service.Other resourcesNcFTPd Server: FTP server software for UNIX

  • LibNcFTP API: FTP library for UNIX and Windows

  • An Overview of the File Transfer Protocol

  • RFC 959, The official File Transfer Protocol specification

  • RFC 2389, "Feature negotiation mechanism for the File Transfer Protocol" (FEAT and OPTS commands)

  • RFC 3659, "Extensions to FTP" (including the machine-readable list command, MLST)

Please do not send mail tohunnypot@ncftpd.com .You will be permanently black-listed if you send mail to that address.


These instructions apply to version2.8.7ofNcFTPd. Grab the latest version from the FTP site if your copy is outdated.Unpack the archive. The package comes as a gzipped TAR file, which meansto extract the archive you need to first un-gzip it, and then un-tar it. The file will be named "xxxx.tar.gz".First, convert the .tar.gz file into a .tar file, like this:$ gzip -d ncftpd.tar.gzGzip will decompress the file, and rename it into a .tar file.Now un-tar the .tar file, like this:$ tar xf ncftpd.tarThat will extract the files from the package into a directory named ncftpd-x.y.z,where x.y.z is the version number. Change your current working directoryto this directory by doing:




How To Install Ncftp Centos



  • Become superuser ("root"), if you aren't already. If you are logged in as an unprivileged user, simply run:$ su -

The installation program, install_ncftpd.pl located in directory you just changed to, is a Perl 5 script. If you don't have Perl version 5 or later installed on your system, you can either download and install Perl, or you can proceed to the section below and install NcFTPd manually. The script is invoked similarly to a typical "configure" script, in that you can specify parameters such as "--prefix" to change where the files are installed. By default, programs are installed in /usr/local/sbin and the configuration files are installed into /usr/local/etc/ncftpd. If you want to use a different install prefix, specify --prefix=DIR on the command line. For example, if you used the parameter "--prefix=/opt/ncftpd" then the programs would be installed into /opt/ncftpd/sbin and the configuration files into /opt/ncftpd/etc/ncftpd. Most installations will use no parameters at all, so you would simply run:


The installation program will run and do its best to stop your existing FTP service (if present) and install and run NcFTPd for you. After the script completes it will tell you if the installation was successful, as well as locations of the installation log and your NcFTPd configuration files. If it was successful, your next step is to edit the configuration files and customize your FTP service configuration; if it was not successful, you can see below on how to install NcFTPd manually. You can also re-run the installation program if you fix the problems noted by the installation program.


Unpack the archive. The package comes as a gzipped TAR file, which meansto extract the archive you need to first un-gzip it, and then un-tar it. The file will be named "xxxx.tar.gz".First, convert the .tar.gz file into a .tar file, like this:$ gzip -d ncftpd.tar.gzGzip will decompress the file, and rename it into a .tar file.Now un-tar the .tar file, like this:$ tar xf ncftpd.tarThat will extract the files from the package into a directory named ncftpd-x.y.z,where x.y.z is the version number. Change your current working directoryto this directory by doing:


  • Become superuser ("root"), if you aren't already. If you are logged in as an unprivileged user, simply run:$ su -

  • Decide upon the final locations of the NcFTPd program files and configurationfiles. We recommend that you use the directory /usr/local/sbin for NcFTPd'sprogram files, and the directory /usr/local/etc/ncftpd for everythingelse. Create the directories /usr/local, /usr/local/sbin,/usr/local/etc,and /usr/local/etc/ncftpd if they are not already present. An easy way todo that is to just do the following while logged in as root:# mkdir -m 755 -p /usr/local/etc/ncftpd /usr/local/sbin

The machine you intend to run the FTP server on needs to be setup for FTP.


  • Create the /etc/ftpusers file, if it is not already present.This file contains a list of usernames, one username per line,which should never be allowed tologin via FTP. Typically, it contains all of the special-purpose system users. At aminimum, it should contain root. You can skip this step if youlike, but /etc/ftpusers should be created for maximum security.Here's an example /etc/ftpusers file:rootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody

  • Make sure the /etc/shells file exists.This file contains a list of interactive shell programs.The purpose of it is to disallow logins from any user who does nothavean interactive shell. This is also optional, but again, for maximumsecurity it is recommended that you create this file.Here's an example /etc/shells file:/bin/sh/sbin/sh/bin/ksh/bin/csh/bin/bash/bin/tcsh/usr/bin/ksh/usr/local/bin/bash/usr/local/bin/tcsh

You now need to create configuration files forNcFTPd.The package comes with sample files, namedgeneral.cf-distanddomain.cf-distMake copies of the sample files and move it to a permanent location. Ifyou're using our recommendations, that would be /usr/local/etc/ncftpd/general.cfand/usr/local/etc/ncftpd/domain.cf.Then edit the files you copied.Directions on how to configure the server are containedin the files, so read through them and make changes.You can also view theconfigurationreference documentation.Thegeneral.cffile contains settings that apply globally to the server and all of your domains, while thedomain.cffile contain the domain-specific settings for one or more virtual domains.Most systems will only have one domain, so you will only have oneset of settings in the domain.cffile, but multi-homed hosts or machines with virtual domains will have multipleconfiguration sets, one for each IP address.


Move the ncftpd executable file to a permanent location. As suggested, that would make the path be /usr/local/sbin/ncftpd. Also copy the programs ncftpd_passwd, ncftpd_spy, ncftpd_edquota, andncftpd_repquota to the same directory (i.e. /usr/local/sbin).Make sure the owner of the executables is bin or root,and that no one has write permission on it. An easy way to do that would be:


Test NcFTPd while logged in as root from your shell command line. Run it just as you normally would, except add the verbose flag, -v, like this:# /usr/local/sbin/ncftpd -v /usr/local/etc/ncftpd/general.cf /usr/local/etc/ncftpd/domain.cfIf the server does not encounter a fatal error, it will stay running, sonow go to another shell, preferably on another system altogether, and tryto FTP to your FTP server. Try a sample FTP session and ensure everythingis working to your satisfaction. While you run it with the verbose logging flag turned on it prints a bunchof debugging information which will also appear in the logs.(When you run it in production, you don't use verbose logging, so it doesn'tprint or log most of that information.) To stop running the server, justhit your interrupt key (usually Ctrl+C or DEL).


At this point you should be comfortable with your NcFTPd configuration and now want to make it run continuously. The final step is to configure your system so that NcFTPd is launched automatically at startup. Prior versions of NcFTPd instructed you to edit /etc/inittab where available and use it to launch NcFTPd. You can still do that if desired, but for new installations we now recommend you use an init script instead, which most sysadmins are accustomed to. Most variants of the UNIX operating system use "rc" scripts to start system services. The NcFTPd package includes a sample startup script -- it is named "ncftpd.init" and is in the "extra" subdirectory of the package you extracted.


  • For systems which have a separate script for each service, there will typically be an "init.d" directory located at /etc/init.d, /etc/rc.d/init.d, or /sbin/init.d. For systems using this style, there will also be run-level directories such as rc2.d and rc3.d which correspond to which services should be launched in each run level. Find out which run-level you want to have NcFTPd run on; typically that will be the run-level you're using now. An easy way to find out which run-level you're using is to do "who -r" or inspect the /etc/inittab file and look for an "initdefault" line.Copy the ncftpd.init script file to your NcFTPd configuration directory (i.e. copy it to /usr/local/etc/ncftpd/ncftpd.init). Then create symbolic links to it in the init.d directory and in the appropriate run-level rcX.d directory. Here's an example: # cp ncftpd.init /usr/local/etc/ncftpd/ncftpd.init# chmod 755 /usr/local/etc/ncftpd/ncftpd.init# cd /etc/rc.d/init.d# ln -s /usr/local/etc/ncftpd/ncftpd.init ./ncftpd.init# cd /etc/rc.d/rc3.d# ln -s ../init.d/ncftpd.init S75ncftpd

Other systems simply use a small number of script files such as rc, rc.network, rc.local etc. For these systems you will need toedit the appropriate file (try rc.local if possible) and have it run the ncftpd.init script. Be sure to copy the ncftpd.init to a permanent location -- we suggest /usr/local/etc/ncftpd/ncftpd.init. 2ff7e9595c


1 view0 comments

Recent Posts

See All

Garena bed wars apk modificado

Bed Wars APK versão mais recente: um jogo PVP divertido e estratégico Você está procurando um jogo novo e emocionante para jogar com seus...

Comments


bottom of page