SuSE FTP activation instance

Source: Internet
Author: User
Tags default ftp port ftp commands socket error

Operating System: suse10 Enterprise Edition
1. Check whether the required FTP package has been activated in the system.
Rpm-Qa | grep vsftp
If not, manually install
Rpm-IVH vsftpd-2.0.4-19.18.suse.x86_64.rpm
2. After installing the play data packet, you need to change the configuration file.
Configuration file directory:/etc/vsftpd. conf
-----------------------------------------------------------------------------
Vsftpd has three server modes: Anonymous, local, and virtual. The configuration file of vsftpd is located in the/etc/directory named vsftpd. conf. The following describes the areas to be modified:
Remove the # Before local_enable = yes to make it available, indicating that local users are allowed to log on. Add the listen_port = 21 configuration item and set the listening port to 21. This step is optional, anonymous users are not allowed to log on,

Change the value of anonymous_enable = yes to no and set it as needed.
Restrict local users to access the file system
Chroot_local_user = Yes restrict local user browsing under the FTP root directory. After an FTP user logs on, the owner and permissions of the directory must be set through chown in the home user directory, in this way, you can upload and create files or directories. Other directories and files can be downloaded normally.

Restart the vsftpd service: Service vsftpd restart. Or, after/etc/init. d/vsftpd restart is started, log on to the local user userl and its password during the test.
Restrict some users to access the file system
Chroot_list_enable = Yes enable list (it cannot be enabled together with the previous command)
Chroot_list_file = % file path % restrict user list files
Connection restrictions
Max_client = % Number % maximum number of connections
Max_per_ip = % Number % maximum number of connections per IP
Anon_max_rate = % Number % anonymous user maximum rate unit: kbit/s
Local_max_rate = % Number % Local User Maximum rate unit: kbps
Iii. test connection
Method 1: use tools to connect. This method is not described. All graphical interfaces are displayed. Click the mouse and click OK. We will introduce the command line method;
Method 2: Use command line to connect
C: \ Documents ents and Settings \ Administrator> FTP 192.168.1.241
Connected to 192.168.1.241.
220 (vsftpd 2.0.4)
User (192.168.1.241 :( none): TFTP
331 please specify the password.
Password:
230 login successful.
Ftp>
Ftp> put D: \ initorcl. ora
200 PORT command successful. Consider using PASV.
150 OK to send data.
226 file receive OK.
FTP: Send 1091 bytes, 0.00 seconds 1091000.00 Kbytes/sec.
Ftp>

Note: I have not specified another FTP port here. The default FTP port 21 is used. If the default port unexpected port is specified in the parameter file, in Windows, the above connection method cannot be used. For details, refer to the following example;
C: \ Documents ents and Settings \ Administrator> FTP
Ftp> open 192.168.1.241 21
Connected to 192.168.1.241.
220 (vsftpd 2.0.4)
User (192.168.1.241 :( none): TFTP
331 please specify the password.
Password:
230 login successful.
Ftp>
Ftp> put D: \ initorcl. ora
200 PORT command successful. Consider using PASV.
150 OK to send data.
226 file receive OK.
FTP: Send 1091 bytes, 0.00 seconds 1091000.00 Kbytes/sec.
Ftp>
Common FTP commands:
1. Select the local path: cd d: \ app
2. Select the remote path: CD/home/TFTP/
3. upload a file: Put
Put can be followed by absolute or relative paths.
4. Download an object: Get
5. Switch the PASV and port modes:
QUOTE PASV
Or
Quote Port
6. Can other commands be entered in FTP? For help.
-----------------------------------
Vsftpd is compiled by myself. Many articles on the Forum said that the xinetd mode is used for compilation. change disable = No to yes in the D/vsftpd file!
Also, add Listen = yes to the/etc/vsftpd. conf file and change it to standalone independent mode!
500 Oops: cocould not bind listening IPv4 socket error:
Because xinetd has started vsftpd and vsftpd is set to stardalone mode, stop the xinetd service first, and stop the service xinetd; Service vsftpd restart

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.