1) 啟動inetd
編輯 /etc/rc.conf
inetd_enable="YES"
2) 開啟telnet
編輯 /etc/inetd.conf
把
#telnet stream tcp nowait root /usr/libexec/telnetd telnetd
#telnet stream tcp6 nowait root /usr/libexec/telnetd telnetd (這個是tcp6協議的)
前面的#去掉
kill -HUP `cat /var/run/inetd.pid`
把inetd重啟一下,就可以了。(只要輸入inetd)
3)讓root可以登陸telnet
編輯 /etc/pam.d/login
account requisite pam_securetty.so
把這行注釋掉
4)開啟ftp
編輯 /etc/inetd.conf
#ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l
#ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -l
去掉前面的注釋
5)讓root登陸ftp
編輯 /etc/ftpusers
注釋掉root
6)dmesg
dispaly the system message buffer
posted on 2006-06-23 00:15
含笑半步癲 閱讀(260)
評論(0) 編輯 收藏 引用 所屬分類:
unix/linux