Install ProFTPD in Linux

Source: Internet
Author: User
Article Title: Install ProFTPD in Linux. Linux is a technology channel of the IT lab in China. Including desktop applications, Linux system management, kernel research, embedded systems, open source, and other basic categories 1. Configure the method for running ProFTPD
 
ServerType inetd
 
# Set the user and group that the server normally runs.
 
User nobody
 
Group nobody
 
If inetd,/etc/init. d/proftpd start is selected for ServerType, an error is returned because you have selected inetd to run.
 
ProFTPd warning: cannot start neither in standalone nor in inetd/xinetd mode. Check your configuration.
 
To manually execute ProFTPD, set ServerType to standalone.
 
2. NIS Authentication
 
/Etc/nsswitch. conf must have the nis Service
 
# Users require a valid shell listed in/etc/shells to login.
 
# Use this directive to release that constrain.
 
# RequireValidShells off
 
You must put the shell information/usr/local/bin/bash passed by NIS Sever in the/etc/shells list; otherwise, it is regarded as invalid shell.
 
In addition, you can directly modify the field of the corresponding shell in the/etc/passwd file to/bin/bash to ignore the shell information sent from the remote end.
 
There is also an important setting,
 
# Uncomment this if you are using NIS or LDAP to retrieve passwords:
 
PersistentPasswd off
 
If PersistentPasswd is set to on, only check the user account in/etc/passwd. Do not use uncomment. Use the above statement. Remember!
 
3. xinet start ProFTPD
 
# Set the user and group that the server normally runs.
 
User root
 
Group root
 
Create/etc/xinetd. d/proftpd and edit the following content.
 
Service ftp
 
{
 
Disable = no
 
Flags = REUSE
 
Socket_type = stream
 
Wait = no
 
User = root
 
Server =/usr/sbin/proftpd
 
Server_args =-c/etc/proftpd. conf
 
Log_on_success + = DURATION USERID
 
Log_on_failure + = USERID
 
}
 
After saving, chmod + x proftpd
 
Everything gonna be alright!
 
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.