久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      RedHat Linux 6.8新增ftp用戶限制目錄和訪問ip

      需求:
      1.RedHat Linux 6.8新建的ftp用戶不能直接登陸系統(tǒng);
      2.不能向上切換目錄,用戶目錄限制在家目錄;
      3.訪問的主機(jī)指定ip,非指定ip拒絕登陸。

      具體步驟:
      1、root賬戶分別登入主備機(jī)172.29.13.91/92

      2、新增test組
      #groupadd test

      3、新建賬號(hào)test
      #useradd -s /sbin/nologin -d /home/test -g test test

      4、root賬戶分別登入172.29.13.91/92

      5、上傳并安裝ftp包
      #rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64

      6、修改ftp配置文件
      限制用戶目錄:
      #vi /etc/vsftpd/vsftpd.conf
      chroot_list_enable=YES
      chroot_list_file=/etc/vsftpd/chroot_list
      #vi /etc/vsftpd/chroot_list
      test
      限制用戶ip:
      #vi /etc/hosts.allow
      vsftpd:172.29.13.24 172.29.13.73:allow
      vsftpd:all:deny

      7、開啟ftp服務(wù)
      #chkconfig –level 345 vsftpd on
      #service vsftpd restart

      8、使用winscp工具登陸:

      RedHat Linux 6.8新增ftp用戶限制目錄和訪問ip

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)