Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to open FTP service under Linux

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to open FTP service under Linux", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "how to open FTP service under Linux" this article bar.

FTP is a software for uploading and downloading. Users can connect their PC to the server running FTP protocol through it, and access the programs and information on the server. The following is a detailed explanation of the specific steps to open FTP services under Linux.

1. First of all, to install ftp software on the server, check whether ftp software has been installed under:

#which vsftpd

If you see a directory with vsftpd, the server has ftp installed

2. View ftp server status

#service vsftpd status

3. Start ftp server

#service vsftpd start

4. Restart ftp server

#service vsftpd restart

5. Check whether the service is started

#netstat -an | grep 21

tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN

If you see the above message, it proves that the ftp service has been started.

6. If you need root ftp privileges, you need to modify the following two files

#vi /etc/vsftpd.ftpusers comment out root

#vi /etc/vsftpd.user_list also comment out root

Then restart the ftp service.

7. vsftpd 500 OOPS: cannot change directory

Error:

C:\>ftp 192.168.0.101

Connected to 192.168.0.101.

220 (vsFTPd 2.0.5)

User (192.168.0.101:(none)): frank

331 Please specify the password.

Password:

500 OOPS: cannot change directory:/home/frank

Login failed.

ftp> ls

500 OOPS: child died

Connection closed by remote host.

Solution:

setsebool ftpd_disable_trans 1

service vsftpd restart

That's OK!

This is SELinux setup command, SELinux can also be turned off before you are familiar with SELnux.

8. Permanently open, i.e. automatically open ftp service after os restart

Method 1:

cd /etc/xinetd.d, edit the ftp service configuration file gssftp settings:

vi /etc/xinetd.d/gssftp will modify two things:

(a)server_args = -l-a Remove-a and read server_args = -l

(b)disable=yes read disable=no

(c)Save exit.

Method 2:

(a)system-config-services , enter the graphical interface System services to see if there is a vsftpd entry, if not go to 2., Save and Exit

(b)Install this service with redhat 3rd disk (start-delete/add programs), around 200K

(c) #setup

At this time, you can see the vsftpd item. Select this service item and exit after saving.

The above is "How to open FTP service under Linux" all the contents of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report