在Solaris 9下打开默认的FTP SERVER

来源:互联网 发布:天九幸福 知乎 编辑:程序博客网 时间:2024/06/04 23:33

在Solaris 9下打开默认的FTP SERVER,Solaris 9和Solaris 10 打开的命令不一样。

以下命令只用于9下面的打开:)

1.注释文件中的用户,如果你想用文件开出的用户登录FTP:

 

bash-2.05# more /etc/ftpd/ftpusers
# ident "@(#)ftpusers   1.4     01/08/27 SMI"
#
# List of users denied access to the FTP server, see ftpusers(4).
#
#root
daemon
bin
sys
adm
lp
uucp
nuucp
smmsp
listen
nobody
noaccess
nobody4

2.vi /etc/inetd.conf 打开FTP SERVER的守护进程。(去掉ftp前面的#) 配置完毕。重新服务就OK了。

# FTPD - FTP server daemon
ftp     stream  tcp6    nowait  root    /usr/sbin/in.ftpd       in.ftpd -a

3.bash-2.05# hostname
smc-tst-orc02ud
bash-2.05# ftp smc-tst-orc02ud
ftp: connect: Connection refused
ftp> bye
bash-2.05# ps -ef | grep inetd
    root  1153     1  0   Nov 19 ?        0:00 /usr/sbin/inetd -s
    root 15025 14415  0 02:09:35 pts/1    0:00 grep inetd
bash-2.05# kill -HUP 1153 
bash-2.05#  ftp smc-tst-orc02ud
Connected to smc-tst-orc02ud.
220 smc-tst-orc02ud FTP server ready.
Name (smc-tst-orc02ud:oracle):

原创粉丝点击