LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-01-2002, 06:54 PM   #1
bakuretsu
LQ Newbie
 
Registered: Mar 2002
Location: Connecticut
Distribution: Slackware, Debian
Posts: 10

Rep: Reputation: 0
Exclamation WU-FTPd and uploading


I'm sure that this isn't the first time someone has asked this question, as I've seen it asked everywhere, but nobody has ever really answered it, at least, not well enough to help me fix the problem.

I'm running RedHat 7.3 and WU-FTPd 2.8.0. My problem is that guest users aren't allowed to upload to a particular directory. Now, I have read every piece of documentation that exists for this thing, the Guest User HOWTO, the addendum by Greg Lundberg, the Uploading Configuration HOWTO, and as many mailing list archives and forums as I could find...

Here is my configuration. I have my /etc/ftpaccess set up the way Lundberg suggests in his addendum HOWTO, so the important lines are:
Code:
guest-root /var/ftp
guestuser *
upload /var/ftp /uploads yes ftpadmin ftpadmin 0664 dirs 0775
ftpadmin is just a regular user created by the adduser utility, and it's somewhat immaterial because uploading doesn't work in the first place. I am logging into the ftp with a fake user I created by the name of Joe Blow. Joe's passwd line looks like this:
Code:
joeblow:x:503:100::/var/ftp:/sbin/nologin
You see that his home directory matches the upload directive's home directory. He is chroot()ed when he logs in, so I know that the guestuser line is working, or he'd be assumed to be a real user. Yet, when he goes into /uploads, he can't upload a thing. Access denied. Privileges? Yeah, we've got those:
Code:
drwxrws-wt    3 ftpadmin ftpadmin     4096 Nov  1 18:20 uploads
Joe can't see what's in uploads, but he should be able to write to it. Now, I suspect that this has something to do with the way guest-root works, or the way the chroot environment is set up, but the documentation is extremely weak, especially considering that this "new and safe" way to do chroot()ing (as outlined in Lundberg's addendum), isn't assumed to be the way you have your FTP set up when you read other HOWTOs, especially the Upload Configuration HOWTO, which assumes you're using the /./ method.

If anyone has ever in their lifetime made uploading work in WU-FTPd with chroot(), and even more specifically if you've used guest-root, please respond! I need your brain!

Thanks everyone ;-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FTPD default permissions (wu-ftpd) bd1308 Linux - Software 1 10-22-2005 06:01 AM
Auotmatic uploading nkutty Linux - Security 1 09-21-2005 09:14 AM
Uploading Files lmanwarren Linux - Software 1 03-21-2005 08:48 AM
Disabling Kerberos ftpd for wu-ftpd mortisd Linux - Software 0 08-31-2004 05:37 AM
Vsftpd uploading dsgdevil Linux - Software 0 05-28-2004 04:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration