Ftp restriction between directories

Sun microsystems Sun fire v20z amd opter...
January 25, 2010 at 03:52:07
Specs: Sun Solaris 9, 2gb/4gb
Hi
Is there any way to restrict a user from cd between a directory using ftp.
I tried using rksh but they still can go between directories

See More: Ftp restriction between directories

Report •

#1
March 15, 2010 at 13:32:04
Been a long time since I've done that with the regular ftp server. You need to make entries in the config and setup each user so that they have a directory and a land directory like:

testuser:x:1500:501:FTPUSER::/bin/false

This sets up a user in /ftp/testuser but when they log in they are locked into the /ftp/testuser/ftp account.

Instead, I normally use Proftpd which easily allows both ftp and SFTP chroot capabilities without having to mess with that. This allows you to support both ftp ans sftp connection without allowing the user to wander.


Report •

#2
October 27, 2010 at 04:48:39
check, /etc/ftp/ftpd.config

uncomment the root prmission as true...


Report •
Related Solutions


Ask Question