The Artima Developer Community
Sponsored Link

Python Buzz Forum
UNIX hackery: Modifying lukemftpd for ftp hosting that doesn't suck

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Phillip Pearson

Posts: 1083
Nickname: myelin
Registered: Aug, 2003

Phillip Pearson is a Python hacker from New Zealand
UNIX hackery: Modifying lukemftpd for ftp hosting that doesn't suck Posted: Dec 3, 2003 1:41 AM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Phillip Pearson.
Original Post: UNIX hackery: Modifying lukemftpd for ftp hosting that doesn't suck
Feed Title: Second p0st
Feed URL: http://www.myelin.co.nz/post/rss.xml
Feed Description: Tech notes and web hackery from the guy that brought you bzero, Python Community Server, the Blogging Ecosystem and the Internet Topic Exchange
Latest Python Buzz Posts
Latest Python Buzz Posts by Phillip Pearson
Latest Posts From Second p0st

Advertisement
My project for tonight is to modify lukemftpd (the FreeBSD FTP server; see also lukemftpd source) to make it useful for hosting FTP for web hosting farms.

All the FTP servers I've looked at process logins using the system password file or whatever method is used for validating interactive user logins. I don't really like this, because FTP usually requires a plaintext password to be transmitted, so if the FTP password is the same as the user's login password, one snooped FTP login can reveal a user's login details and allow an attacker to obtain an interactive session over SSH.

So ... I'm modifying lukemftpd to let you specify a /etc/passwd-like file that will be used to validate logins.

The result of this will be that you'll be able to have users who don't exist on the host system but are able to log in over FTP, and will be chrootable to wherever you like. So, for example, you'd be able to create a user just for Blogger. That user would be chrooted to the /www/root/blog/ directory, and would have a password that won't permit access to any other system services. This greatly reduces the harm in giving Blogger your FTP login name and password.

Comment

Read: UNIX hackery: Modifying lukemftpd for ftp hosting that doesn't suck

Topic: Archetypes Hacks and Another Presentation Previous Topic   Next Topic Topic: Cocoa applications in Python

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use