Solved

Making ftp more "secure"

Posted on 1997-07-01
7
272 Views
Last Modified: 2010-04-21

  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
0
Comment
Question by:adamolson
  • 3
  • 3
7 Comments
 
LVL 51

Expert Comment

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

Ciao
Achim
0
 
LVL 1

Author Comment

by:adamolson
Comment Utility
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
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
may be following works, (add to /etc/ftpaccess):

      cd no joe

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

Ciao Achim
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Accepted Solution

by:
hilla earned 100 total points
Comment Utility
Create a .profile that would remove access to cd

Force ftp to work within an rsh

Good-luck, FTP is a security problem.
0
 
LVL 1

Author Comment

by:adamolson
Comment Utility
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
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
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.
0
 
LVL 1

Author Comment

by:adamolson
Comment Utility
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
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now