Link to home
Start Free TrialLog in
Avatar of adamolson
adamolson

asked on

Making ftp more "secure"


  Hi...I'm running wu-ftpd and I'm trying to figure out how to configure it so that when user joe ftps in, his root is his home directory and he can't cd out of it to the dir that houses all the user directories....thanks....Adam
Avatar of ahoffmann
ahoffmann
Flag of Germany image

This is only possible for user  ftp  and  anonymous.
I think you must patch wu-ftpd 's sources to satisfy your goals.

Ciao
Achim
Avatar of adamolson
adamolson

ASKER

I've been reading that you can write a wrapper, but I'm looking for an easier way that might be in wu-ftpd already...thanks...Adam
may be following works, (add to /etc/ftpaccess):

      cd no joe

but this will disable cd at all for user joe :-(

Ciao Achim
ASKER CERTIFIED SOLUTION
Avatar of hilla
hilla

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
So if I created a .profile that eliminated this, would it also be effective in a normal shell? Would this restrict them from cding to their dirs in their home dir?  can you send me your email address?  Adam
Yes, .profile would kill the cd functionallity for normal login.
And, $HOME/.profile is designed to be under users control!

BTW, ftp does not use the shell defined in /etc/passwd, so I
think (I've not checked the source) hilla's answer is not a
solution.
Hi...I figured out how to do it....if you ever need to know how, go to ftp://ftp.fni.com/pub/wu-ftpd/guest-howto

this explains how to set it up so users have their home directories as root dir....thanks...Adam