Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Making ftp more "secure"

Posted on 1997-07-01
7
Medium Priority
?
282 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 51

Expert Comment

by:ahoffmann
ID: 2006489
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
ID: 2006490
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
ID: 2006491
may be following works, (add to /etc/ftpaccess):

      cd no joe

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

Ciao Achim
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Accepted Solution

by:
hilla earned 100 total points
ID: 2006492
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
ID: 2006493
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
ID: 2006494
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
ID: 2006495
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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

610 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