偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

如何使用Linux自帶的gssftp服務(wù)

系統(tǒng) Linux
對于剛剛接觸Linux操作系統(tǒng)的人,對于如何使用Linux自帶的gssftp服務(wù)一定不怎么清楚。沒關(guān)系,本篇文章便為大家解答如何使用這項服務(wù)。

對于剛剛接觸Linux操作系統(tǒng)的人,對于如何使用Linux自帶的gssftp服務(wù)一定不怎么清楚。沒關(guān)系,本篇文章便為大家解答如何使用這項服務(wù)。

RedHat和CentOS都自帶了一個gssftp服務(wù),使用方式如下:

[root@linux local]# cd /etc/xinetd.d 
[root@linux xinetd.d]# ls 
chargen cups-lpd daytime-udp echo-udp gssftp krb5-telnet rsync time-udp 
chargen-udp daytime echo eklogin klogin kshell time

編輯gssftp文件,將server_args改為-l,將disable改為no:

[root@linux xinetd.d]# vi gssftp
[root@linux xinetd.d]# vi gssftp
# default: off
# description: The kerberized FTP server accepts FTP connections \
# that can be authenticated with Kerberos 5.
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
#server_args = -l -a
server_args = -l
log_on_failure += USERID
#disable = yes
disable = no
}

重啟xinetd服務(wù):

[root@linux xinetd.d]# service xinetd restart 
Stopping xinetd: [ OK ] 
Starting xinetd: [ OK ]

這時查看21端口已經(jīng)打開:

[root@linux xinetd.d]# netstat -tnlp 
Active Internet connections (only servers) 
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name 
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 22543/xinetd

如果防火墻沒有打開端口,則開放21端口并重啟防火墻服務(wù):

[root@linux xinetd.d]# vi /etc/sysconfig/iptables 
[root@linux xinetd.d]# service iptables restart 
Flushing firewall rules: [ OK ] 
Setting chains to policy ACCEPT: filter [ OK ] 
Unloading iptables modules: [ OK ] 
Applying iptables firewall rules: [ OK ]

這樣ftp服務(wù)就可用了,可以使用linux系統(tǒng)用戶登錄,不過gssftp不夠安全,臨時應(yīng)急或內(nèi)部使用可以,穩(wěn)定的FTP服務(wù)還是建議使用vsftp來搭建。

【編輯推薦】

  1. 雅虎、Iqalia加入Linux基金會
  2. 聚焦Linux合作峰會2011:五大議題
  3. Linux下利用ext3grep恢復(fù)被刪除的文件
  4. Linux十大妙用:充當(dāng)Windows修復(fù)工具
  5. Novell推出業(yè)界最長的企業(yè)級Linux支持項目
     

 

責(zé)任編輯:馮宇 來源: Linux社區(qū)
相關(guān)推薦

2020-12-29 05:34:48

Scrapy網(wǎng)頁源代碼

2017-08-11 18:25:25

Linuxi2c

2011-08-17 11:10:26

Win7問題步驟錄制器

2015-11-26 10:53:45

LinuxWindowsMac OS

2020-11-04 18:53:07

Linuxsystemctl運(yùn)維

2015-08-05 09:35:38

Bastille服務(wù)器安全

2009-02-10 15:46:00

VNCLinux服務(wù)器遠(yuǎn)程桌面

2010-08-03 15:37:43

Linux NFS服務(wù)

2020-05-22 15:45:30

Linuxlogrotate神器

2021-08-16 11:59:32

Linuxlogrotate日志文件

2018-11-19 09:50:51

Linux命令操作系統(tǒng)

2019-02-20 08:53:59

SFTPLinux服務(wù)器

2012-07-31 17:24:50

Java管理Linux服務(wù)器

2013-12-03 11:01:41

Linux服務(wù)器管理Webmin

2018-08-03 08:43:38

2023-04-10 07:23:24

軟件微服務(wù)網(wǎng)絡(luò)

2021-03-17 07:29:15

Systemctl 管理Linux

2022-08-16 08:19:04

Sentinel微服務(wù)

2013-12-30 16:27:43

Windows畫圖工具

2011-03-29 09:08:50

Linux配置Cacti
點(diǎn)贊
收藏

51CTO技術(shù)棧公眾號