Install the ftp server in linux

Source: Internet
Author: User
Tags ftp access
Article Title: Install the ftp server in linux. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1. Installation

If you can download the installation package, use the installation package to install it. I didn't use the installation package. As a result, various problems occurred in the user permission configuration. Although it is installed, the management configuration is definitely not the best. Slowly explore.

I used this command to install sudo apt-get install vsftp. This command will download a vsftpd-version. deb package at/var/cache/apt/archines. The install command will start from this package.

After the installation is complete, there will be a vsftpd file in/usr/sbin for starting the service without modifying the configuration. vsftpd is available in/etc. conf file, used to configure the service; vsftpd is available under/var/log. log File to record ftp logs.

After the installation is complete, the service will be automatically started if you remember correctly. In this case, you can try to connect to the ftp service.

2. Configuration

Open the/etc/vsftpd. conf file. If you have the permission to write the file, you can configure it. The main configuration content is clearly described in the comments line of the file. I would like to briefly introduce some of my configurations.

Prohibit anonymous user access: anonymous_enable = NO

Enable global write permission: write_enable = YES

Operation permission mask. I still don't know what to use: local_umask = 022

Set the main path of the user and disable access to the parent directory: chroot_local_user = YES

Chroot_list_enable = NO

Chroot_list_file =/home/weblogic/ftp # This is the directory of the main path. Set it as needed.

Disable some system users from logging on to ftp: userlist_deny = YES

Userlist_enable = YES

Userlist_file =/etc/vsftpd. userlist

In/etc/vsftpd. userlist, configure the format of one user name per line to prohibit ftp access to users.

3. Start, shut down, and restart

After the configuration changes, you may need to start, shut down, or restart the service. Run the following command:

Service vsftpd start/stop/restart

You can also use this command to start the service:

Sudo/usr/sbin/vsftpd

4. Incomplete

Now the ftp service is running, but the configuration of users and permissions is a mess. Ah. Continue to explore.

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.