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 ;-)