How to start a ftp service

本文详细介绍了如何启动FTP服务、验证端口开放、配置特定用户FTP权限,并提供了两个选项来解决默认权限限制问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • How to start a ftp service
  1.  Login as root 
  2.  Vi /etc/vsftpd.conf

            local_enable=YES
            write_enable=YES

    3.Then start vsftpd service

            service vsftpd start
    4.See if port 21 is open
    5.netstat –na|grep 21
            tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN   
    6.See attachment for details.

 

  • Open ftp service
  • 1. If ftp service is not open, open it following the last mail I sent before.
  • 2. Step 2, by default step 1 only open the normal user’s ftp privilege(like test), users like root, oracle are denied from the ftp user list.
  • So you have two choices:
  • 1) copy files from oracle user to test user. Then send files by test user from 99 to 15 node.
  • 2) Open oracle user’s ftp privilege. If so go to Step 3.
  • 3. Step 3, to open oracle user’s ftp privilege, do following:
  • 1) Login as root
  • 2) Vi /etc/ftpusers
  • #
  • # ftpusers      This file describes the names of the users that may
  • #               _*NOT*_ log into the system via the FTP server.
  • #               This usually includes "root", "uucp", "news" and the
  • #               like, because those users have too much power to be
  • #               allowed to do "just" FTP...
  • #oracle                    //mark oracle from the list.
  • 3) Save and done.

                           Then you can happy to copy files through ftp use the oracle user now.
  • 4) As the oracle user have too much power, it’s dangerous to open the ftp privilege. I suggest to closed it after you finished your job (move the mark from /etc/ftpusers).
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值