Restrict non-anonymous from change directory outside "home"

  • Follow


I had create this user account mainly for FTP use.

I had already setup FTPD with ftpaccess functionality.

The following is the content of my /etc/ftpd/ftpaccess
#=====
class local    real  *.mydomain.com
class outsider real !*.mydomain.com

loginfails 3
banner /etc/ftpd/banner.msg
greeting terse
noretrieve /etc/passwd core

upload class=local /  *       no
upload class=local /files/upload/  *  yes guser itstaff 0660 nodirs
#======

There is numerous subdirectories within /files/upload, which this user
can change directory to, but I am having problem restrict this user
from exit outside /files/upload. It currently able to even able to cd
to / (root) and perform dir listing.

Anyone able to help me??

0
Reply ultrakiasu (14) 1/19/2005 6:27:25 AM

Hi Ultra

> There is numerous subdirectories within /files/upload, which this user
> can change directory to, but I am having problem restrict this user
> from exit outside /files/upload. It currently able to even able to cd
> to / (root) and perform dir listing.
Look for "anonymous ftp" and "chroot" command in your favourite search 
machine.

Florian

0
Reply Florian 1/19/2005 11:32:48 AM


Use rsh shell, with this they can't go ouside of home directory.

-SR

0
Reply Sun 1/19/2005 4:17:18 PM

2 Replies
382 Views

(page loaded in 7.604 seconds)

Similiar Articles:













7/24/2012 3:47:09 AM


Reply: