Linuxftp User Creation

Source: Internet
Author: User
Tags ftp login
Linux Enterprise Application-Linux server application information, which is created by Linuxftp. For more information, see. 1. Install the vsftpd service:
Run yum install vsftpd in shell to install it successfully;

2. Modify vsftpd Configuration:
Find vsftpd in/etc/vsftpd. conf file, modify the default configuration, including the listening address and port, whether to enable the tcp and psav modes, etc. The configuration is relatively simple. For details, refer to the vsftpd configuration manual in my article.

3. Start the vsftpd service:
Run service vsftpd start, or run/etc/init. d/vsftpd start.

4. Create a user and logon directory for ftp
This is the same as creating a user account in linux.

First create a user account to the ftp directory with "useradd-d directory name username", and then set the password with passwd;

Then you can use the username and account you created to log on to the ftp. The ftp login method is
Ftp host name;
Enter the user name;
Enter the password.
Of course, you can also use ftp.

Enable FTP
[Root @ huiyi ~] # Service vsftpd start

Starting vsftpd for vsftpd: [OK]

Disable FTP
[Root @ huiyi ~] # Service vsftpd stop

Shutting down vsftpd: [OK]

[1] FTP automatic logon and batch download
#! /Bin/bash
Ftp-n < Open 192.168.1.171
User guest 123456.
Binary
Cd/home/data
LCD/home/databackup
Prompt
Mget *
Close
Bye
!

[2] FTP automatic logon and File Upload
#! /Bin/bash
Ftp-n < Open 192.168.1.171
User guest 123456.
Binary
Hash
Cd/home/data
LCD/home/databackup
Prompt
Mput *
Close
Bye
!

Try ftp in Linux.
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.