#10 2008-12-17 14:01:51
Re: 请问:samba3
如果在我的wl-hdd上插入一个U盘,就可以ftp到这个U盘的内容,但内置的硬盘就不行,显示连接失败 (连接被拒)。我看Aven大的ftp教程里也是这有这么一说。本人对linux一窍不通,下面是我的ps、netstat,我看不懂,大家帮我看看:
[admin@WL-HDD root]$ ps
PID Uid VmSize Stat Command
1 admin 308 S /sbin/init
2 admin SW [keventd]
3 admin SWN [ksoftirqd_CPU0]
4 admin SW [kswapd]
5 admin SW [bdflush]
6 admin SW [kupdated]
7 admin SW [mtdblockd]
40 admin 104 R udhcpc -i br0 -p /var/run/udhcpc_lan.pid -s /tmp/land
45 admin 244 S telnetd
50 admin 308 S httpd
53 admin 156 S syslogd -m 0 -O /tmp/syslog.log -S -l 7
55 admin 124 S klogd
56 admin SW [khubd]
62 admin 36 S lpd
64 admin 68 S p9100d -f /dev/usb/lp0 0
67 admin 68 S waveservermain
69 admin 68 S rcamdmain
74 admin 84 S infosvr br0
75 admin 448 S watchdog
77 admin 104 S ntp
84 admin SW [kjournald]
104 admin 1592 S /opt/sbin/nmbd -D
108 admin 2128 S /opt/sbin/smbd -D
109 admin 2168 S /opt/sbin/smbd -D
110 admin 548 S -sh
119 admin SW [usb-storage-0]
120 admin SW [scsi_eh_0]
125 admin 364 S /usr/sbin/vsftpd
127 nobody 496 S [vsftpd]
129 admin 564 S /usr/sbin/vsftpd
132 admin 392 R ps
[admin@WL-HDD root]$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost.localdoma:www localhost.localdom:2112 TIME_WAIT
tcp 0 0 localhost.localdoma:www localhost.localdom:2114 TIME_WAIT
tcp 0 0 localhost.localdoma:www localhost.localdom:2108 TIME_WAIT
tcp 0 0 localhost.localdoma:www localhost.localdom:2110 TIME_WAIT
tcp 0 0 localhost.localdoma:www localhost.localdom:2113 TIME_WAIT
tcp 0 0 localhost.localdoma:www localhost.localdom:2109 TIME_WAIT
tcp 0 0 WL-HDD:2111 192.168.0.11:2711 TIME_WAIT
tcp 0 0 WL-HDD:ftp 192.168.0.11:2709 ESTABLISHED
tcp 0 782 ::ffff:192.168.0:telnet ::ffff:192.168.0.1:2323 ESTABLISHED
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags Type State I-Node Path
unix 5 [ ] DGRAM 284 /dev/log
unix 3 [ ] STREAM CONNECTED 1504
unix 3 [ ] STREAM CONNECTED 1503
unix 2 [ ] DGRAM 1502
unix 2 [ ] DGRAM 792
unix 2 [ ] DGRAM 287
还有vsftpd.conf的内容,改不了的,改了重启后又还原了:
anon_allow_writable_root=yes
anon_world_readable_only=no
anon_umask=022
anon_upload_enable=yes
anon_mkdir_write_enable=yes
anon_other_write_enable=yes
dirmessage_enable=yes
download_enable=no
dirlist_enable=no
hide_ids=yes
syslog_enable=yes
local_enable=yes
local_umask=022
chmod_enable=no
chroot_local_user=yes
check_shell=no
user_config_dir=/etc/vsftpd.users
passwd_file=/etc/vsftpd.passwd
listen=yes
listen_port=21
background=yes
max_clients=12
idle_session_timeout=240
utf8=yes
use_sendfile=no
anon_max_rate=0
local_max_rate=0
離線