Ftp directory access restriction for guest user

Ftp directory access restriction for guest user

Post by lo.. » Wed, 13 Jun 2001 16:59:51



Hi,

I'd like to restrict guest user to seeing only its home directory during a ftp
session.

I've tried
chroot /home/guest /usr/bin/ftp
but it give me a
chroot: cannot execute /usr/bin/ftp: No such file or directory

Of course, it did check the ftp is there.

I've also tried to change the passwd file of guest to
guest:x:507:507::/home/guest./home/guest:/bin/bash

but instead of making the /home/guest as root directory, it default to the root.

I greatly appreciate any help.

Thanks.

Han Ming

 
 
 

1. Directory access restriction to guest user

Hi,

Can anyone advice what's the way to restrict guest user to its home directory only?

I've tried with
chroot /home/guest /usr/bin/ftp
but it keep give me a
cannot execute /usr/bin/ftp : No such file or directory

Of course, I did check the ftp file is there.

If this is not the way, can anyone kindly give some advice.

Thanks.

Han Ming

2. GUI Samba

3. How Can I stop ftp users climbing to the root directory from the guest home directory ?

4. Earlier versions of Netscape

5. Guest ftp users are not located in their wu-ftp home directory

6. tail -f and log file rotation

7. User directory access restriction

8. do this under winders!!

9. restricted ftp user guest/ access denied

10. FTP user directory restriction

11. How to put ftp user restriction on other users

12. Restricting ftp directory access on a per user basis

13. Restricting User Access to Directories on FTP