由 knods 在 11-19-2002 22:30 发表:
请问:wu-ftp下共享的目录问题
我的wu-ftp 共享的目录的位置是默认的
我想把/tools 共享给ftp用户。怎么设置?谢谢
由 dancingpig 在 11-20-2002 10:15 发表:
把共享目录改成tools可以不?
由 solaris 在 11-20-2002 10:16 发表:
详细一点,是否需要锁定目录?
如果需要锁定的话,把用户ftp的home目录设为/tools就可以了。
由 knods 在 11-20-2002 12:10 发表:
[root@konds root]# ftp 10.100.129.3
Connected to 10.100.129.3 (10.100.129.3).
220 konds FTP server (Version wu-2.6.1-18) ready.
Name (10.100.129.3:root): liu
331 Password required for liu.
Password:
230 User liu logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (10,100,129,3,252,147)
150 Opening ASCII mode data connection for directory listing.
total 128
drwxr-xr-x 6 root root 4096 Nov 20 00:19 RPMS
drwxr-xr-x 14 root root 4096 Nov 19 21:53 backup
drwxr-xr-x 4 root root 4096 Nov 19 18:57 bmp
drwxr-xr-x 6 root root 4096 Nov 19 19:25 fd-r-f
drwxr-xr-x 2 root root 16384 Nov 11 18:13 lost+found
drwxr-xr-x 4 root root 4096 Nov 19 20:06 mp3
drwxr-xr-x 7 root root 4096 Nov 16 15:04 rhce
-rw-r--r-- 1 root root 21556 Nov 14 12:08 showredhat.php
226 Transfer complete.
ftp> bye
221-You have transferred 0 bytes in 0 files.
221-Total traffic for this session was 336 bytes in 0 transfers.
221 Thank you for using the FTP service on konds.
[root@konds root]# vi /etc/ftp
ftpaccess ftpgroups ftpusers
ftpconversions ftphosts
[root@konds root]# ncftp 10.100.129.3
NcFTP 3.0.3 (April 15, 2001) by Mike Gleason ([email protected]).
Connecting to 10.100.129.3... konds FTP server (Version wu-2.6.1-18) ready.
Logging in... Guest login ok, access restrictions apply.
Logged in to 10.100.129.3. ncftp / > ls
bin/ etc/ incoming/ lib/ pub/
ncftp / >
用匿名和liu访问的目录怎么会不一样?
ftpaccess
This file controls the behavior of the wu-ftpd
ftp server.
If you're looking for a graphical frontend to
editing it, try kwuftpd from the kdeadmin
package.
Don't allow system accounts to log in over ftp
deny-uid %-99 %65534-
deny-gid %-99 %65534-
allow-uid ftp
allow-gid ftp
The ftpchroot group doesn't exist by default, this
entry is just supplied as an example.
To chroot a user, modify the line below or create
the ftpchroot group and add the user to it.
You will need to setup the required applications
and libraries in the root directory (set using
guest-root).
Look at the anonftp package for the files you'll need.guestgroup ftpchroot
User classes...
class all real,guest,anonymous *
Set this to your email address
email root@localhost
Allow 5 mistyped passwords
loginfails 5