Anonymous FTP Upload Trouble

bosco

Registered
Howdy,

I'm a brand new Mac OS X user, recently out of the AIX world, so my experience with OS X is very limited and new.

I'm having trouble with anonymous users uploading files via FTP to my OS X Server system. The FTPServer is set up to allow anonymous access, and users CAN login and download files as anonymous without any trouble. Also, regular users, those with usernames and passwords on the system, can login using their own credentials and upload files

The problem is that anonymous users can't upload files to the server-- they receive a permission denied error. For example,

553 /public/incoming/uploads/uni.0711.csv: Permission denied.. (Upload).

The thing that I'm really confused about is why this is happening, because I've set the file permissions as follows:

1. From the BSD level, my FTPRoot/public/incoming/uploads directory is owned by user systems, group admin and the perms are -rwxrwxrwx. (ouch... I know, I know, very bad, but hopefully temporary)

2. From the OS X level, the privileges are set READ-WRITE for everyone.

So shouldn't the uploads directory be writable by anyone, including anonymous? As I said, anonymous logins work fine, it's just uplaoding that doesn't work.

Now ultimately, I don't want to leave the perms for read-write for everyone, and I'd like to set the ../incoming/uploads directory up as a write-only file drop; before I can do so, however, I obviously need to get it working at all.

Thanks,
Bosco
 
Well, here's a nice big recursive ls of my FTP directory (/Users/ftp). I guess your best bet is to just start comparing the permissions. This arrangement works just fine on my system.

Code:
[/Users/ftp] dave% ls -lR
.:
total 0
dr-xr-xr-x    3 dave     www            58 Jul  7  2001 System
dr-xr-xr-x    3 dave     www            58 Dec 25  2001 bin
drwxr-xr-x    2 dave     www            24 Jul  7  2001 etc
drwx-wx-wx    2 dave     www            24 Jul 13 13:17 incoming
drwxr-xr-x    2 dave     www            24 Jul 13 13:17 pub
dr-xr-xr-x    3 dave     www            58 Jul  7  2001 usr

./System:
total 0
dr-xr-xr-x    3 dave     www            58 Jul  7  2001 Library

./System/Library:
total 0
dr-xr-xr-x    3 dave     www            58 Jul  7  2001 Frameworkds

./System/Library/Frameworkds:
total 0
dr-xr-xr-x    3 dave     www            58 Jul  7  2001 System.framework

./System/Library/Frameworkds/System.framework:
total 1232
-r-xr-xr-x    1 root     www       1260752 Jul  7  2001 System

./bin:
total 28
-r-xr-xr-x    1 root     www         26984 Dec 25  2001 ls

./etc:
total 0

./incoming:
total 0

./pub:
total 0

./usr:
total 0
dr-xr-xr-x    4 dave     www            92 Jul  7  2001 lib

./usr/lib:
total 1552
-r-xr-xr-x    1 root     www        327528 Jul  7  2001 dyld
-r-xr-xr-x    1 dave     www       1260752 Jul  7  2001 libSystem.B.dylib

Despite the troubles you may be having, this is still a hell of a lot easier than setting up a drop box on a Windows 2000 server. Whoo! There's a good couple hours of my life I'd like to have back.
 
Back
Top