centos 5 yum vsFTPd FTP server installation and configuration

2011-08-29  来源:本站原创  分类:OS  人气:111 

vsftpd as FTP server, the Linux system is very common. Here we describe how to install centos system vsftp.

What is vsftpdvsftpd is a Linux distribution in the most respected in the FTP server program. Characterized by small, light, safe to use.

vsftpd name stands for "very secure FTP daemon", security is its developer Chris Evans one of the most important issue to consider. In the FTP server design and development of the very beginning, high security is a goal.

Install vsftpd 1, the administrator (root) to execute the following command

yum install vsftpd 2, set the boot vsftpd ftp service

chkconfig vsftpd on 3, start the vsftpd service

service vsftpd start vsftpd management related commands:

Stop vsftpd:? Service vsftpd stop

Restart vsftpd:? Service vsftpd restart

Configure the firewall to open / etc / sysconfig / iptables file

vi / etc / sysconfig / iptables add the following code before the REJECT line

-A RH-Firewall-1-INPUT-m state-state NEW-m tcp-p tcp-dport 21-j ACCEPT Save and close the file, restart the Firewall

service iptables start configuring the vsftpd server default configuration file is / etc / vsftpd / vsftpd.conf, you can use a text editor to open.

vi / etc / vsftpd / vsftpd.conf add the following is added ftpuser ftp user user, set the root directory is / home / wwwroot / ftpuser, prohibit the SSH user login permissions, and restrict their access to other directories.

1, modify / etc / vsftpd / vsftpd.conf

The bottom three lines

# Chroot_list_enable = YES # (default follows) # chroot_list_file = / etc / vsftpd.chroot_list to

chroot_list_enable = YES # (default follows) chroot_list_file = / etc / vsftpd / chroot_list 3, increase user ftpuser, pointing to the directory / home / wwwroot / ftpuser, prohibit login SSH access.

useradd-d / home / wwwroot / ftpuser-g ftp-s / sbin / nologin ftpuser 4, set the user password

passwd ftpuser 5, edit the file chroot_list:

vi / etc / vsftpd / chroot_list content ftp user names, one user per line, such as:

peter
john

6, restart vsftpd

service vsftpd restart Also, if the future management of the ftp user name that bothered, you can use the official release of centos script management. The following address:

http://wiki.centos.org/HowTos/Chroot_Vsftpd_with_non-system_users

7. Add ftp login directory and limit

useradd-d / var / www / html / miaoyou-g ftp-s / sbin / nologin lifeng

useradd-d / var / www / html / miaoyou-g ftp-s / sbin / nologin xuhuali

useradd-d / var / www / html / miaoyou-g ftp-s / sbin / nologin wangxinglong

useradd-d / var / www / html / miaoyou-g ftp-s / sbin / nologin lifeng

相关文章
  • centos 5 yum vsFTPd FTP server installation and configuration 2011-08-29

    vsftpd as FTP server, the Linux system is very common. Here we describe how to install centos system vsftp. What is vsftpdvsftpd is a Linux distribution in the most respected in the FTP server program. Characterized by small, light, safe to use. vsft

  • Vsftpd server installation and configuration of the ftp address to the local method of mapping mount 2010-12-21

    Vsftpd server installation and configuration of the ftp address to the local method of mapping mount 1. Installing ftp server daemon program luther @ gliethttp: ~ $ sudo apt-get install vsftpd luther @ gliethttp: ~ $ sudo mkdir-p / home / ftp_dir / u

  • Turn: Glassfish v3 Server Installation and Configuration 2010-03-29

    1.1 Glassfish v3 Server Installation and Configuration 1.1.1 unzip and install the mkdir / opt / glassfish cd / opt / glassfish unzip / home/pkg/glassfish-v3-preview-b46.zip Start glassfish: / opt/glassfish/glassfishv3/bin/asadmin start-domain 1.1.2

  • James mail server installation and configuration 2010-03-29

    James mail server installation and configuration of environment: Mail Server: OS: REDHAT LINUX AS 4 IP: 192.168.1.108 Subnet Mask: 255.255.0 Gateway: 192.168.1.1 DNS: 192.168.1.2 Client: Operating System: windows 2003 IP: 192.168.1.2 Subnet Mask: 255

  • ORACLE 9I (Enterprise Edition) Database server installation and configuration 2011-04-28

    ORACLE 9I (Enterprise Edition) Database server installation and configuration Note: Before installing make sure your computer is installed oracle, if not then the following instructions to install, and if installed the first reference oracle oracle u

  • vsftpd FTP server set up virtual users 2010-12-23

    Overview: The so-called virtual users, meaning the client logged in with FTP username and password in the system was not real; virtually every virtual user is a real local user to log in to FTP server. This can effectively control the server's securi

  • VSS server installation and configuration 2010-12-08

    3 VSS 6.0 installation (1) VSS6.0 server installation. The first step, the Visual Studio6.0 of CD1 into CD-ROM, automatically install the program, select the second item "Server Applications and Tools (Add Only)"; The second step, and then "

  • [Transfer] video tutorials: win32 svn under the stand-alone server installation and configuration 2011-10-05

    Tried looking at tutorials, from the build server to the client Check out, Commit such entry is not difficult. Note do not confuse the name of the path on the line. I downloaded the relatively new: TortoiseSVN_v166chs Setup-Subversion-1.6.6 Exactly c

  • CentOS under Nginx + tomcat + MySQL server installation 2010-04-14

    linux is also very long exposure, and have never had to really use. Want to own some of the recent development of small application deployment to the linux server, by the way also to learn about linux server. Then with a host (general pc, pc stabilit

  • RHEL5 build to configure vsftpd FTP server 2010-10-19

    Linux server management, we often use the upload and download files function, the following is about how to configure vsftpd to achieve upload and download capabilities. 1, find the rpm package, RPM package name: vsftpd-2.0.5-16.el5.i386.rpm [Root @

  • Subversion server installation and configuration under Centos 2010-11-01

    Wrote 1. Install: yum install subversion 2. Svn configuration set up svn repository directory can be built more of: New Folder: # Mkdir-p / opt / svndata / repos Create svn repository: # Svnadmin create / opt / svndata / repos Modify the svn reposito

  • Ubuntu under vsftpd, ftp server configuration 2011-05-12

    http://wiki.ubuntu.org.cn/Vsftpd # stand_alone.E5.92.8Csuper_daemon

  • SVN under Ubuntu server installation and configuration 2010-02-25

    First, install the SVN default installation to / usr / local / bin the following Second, create a repository svnadmin create / home / svnrepo / Root / svnrepo created for the repository path, theoretically can be any directory Third, modify the confi

  • subversion server installation and configuration 2010-04-17

    Environment: svn1.6 xp 3 First, install: This makes installation simple set, download the latest version of svn to download the latest TortoiseSVN Tip: subversion and TortoiseSVN installation is complete, need to reboot the system, apache service bef

  • cvs server installation and configuration under windows 2010-11-21

    1. Download cvsnt (can be downloaded from the attachment) 2. Install cvsnt Double-click the installation file directly to run cvsnt, the installation process you can choose to classic, custom and complete installation of three ways, in ways you can c

  • SVN Server installation and configuration under ubuntu 2011-05-31

    A, SVN Installation 1. Installer $ Sudo apt-get install subversion 2. Add svn subversion user and group management $ Sudo adduser svnuser $ Sudo addgroup subversion $ Sudo addgroup svnuser subversion 3. Create project directory $ Sudo mkdir / home /

  • Git in Ubuntu server installation and configuration 2011-06-28

    1 Installation 1.1 Installing Git-Core: sudo apt-get install git-core 1.2 Installation Gitosis sudo apt-get install python-setuptools mkdir ~ / src cd ~ / src git clone git: / / eagain.net / gitosis cd gitosis sudo python setup.py install Increase us

  • NFS Server installation and configuration 2010-06-22

    1. Statement 2. Overview 3. Installation 3.1 Environment Description: 3.2 installation: 3.3 The start and stop services 4. server-side configuration 4.1 Creating shared directory 4.2 Create or modify / etc / exports configuration file 4.3 restart the

  • SVN under Windows server installation and configuration 2010-08-04

    Preparations First of all, first download the Windows version of the SVN server (using the search engine so you will not be available for download addresses a), where I have to svn-win32-1.4.3 unzip the ZIP version, for example, extract it to the tar

  • Ejabberd instant messaging server installation and configuration of ubuntu system 2010-12-30

    ejabberd version is 2.1.5: 1) If the pre-existing ejabberd, please go to the original ejabberd directory operation (no skip): make uninstall Delete the already existing ejabberd directory: / Etc / ejabberd / Var / lib / ejabberd / Log / ejabberd 2) I