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
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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

adamolsonAuthor Commented:
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
Cloud Class® Course: SQL Server Core 2016

This course will introduce you to SQL Server Core 2016, as well as teach you about SSMS, data tools, installation, server configuration, using Management Studio, and writing and executing queries.

Create a .profile that would remove access to cd

Force ftp to work within an rsh

Good-luck, FTP is a security problem.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
adamolsonAuthor Commented:
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
adamolsonAuthor Commented:
Hi...I figured out how to do it....if you ever need to know how, go to

this explains how to set it up so users have their home directories as root dir....thanks...Adam
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Unix OS

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.