Anonymous FTP users can't view files

I've got Server running on Mac OS Sierra, and FTP is set up to allow anonymous access; however, when I log in anonymously I can see no files:

User uploaded file

If I log in with a normal user account, I get a proper listing:

User uploaded file

I get the same results from active ftp connections and passive, and from command line ftp as well as web browsers. Directory permissions are 755 and file permissions are 644, so everything is world-readable. What am I missing here?

macOS Sierra (10.12.2)

Posted on Dec 28, 2016 11:47 AM

Reply
2 replies

Dec 30, 2016 10:42 AM in response to BSDRob

FTP is a very old and very insecure system, you would be much better off using SFTP instead which is supported by Apple's server software.


If you really have to use FTP and really have to use anonymous FTP then it is possible but you have to do several extra steps because as standard Apple deliberately disable anonymous access because of these valid security concerns.


  1. Start off with the FTP service turned off
  2. Run Server.app and turn on show System Accounts in the View menu
  3. In Server.app go to Users and view local accounts and find the FTP Daemon account
  4. Edit the 'Access to Services…' via the cog-wheel for the FTP Daemon account and enable FTP access - it sounds like you may have done this already
  5. In the FTP Server option in Server.app give 'everyone' read only access, this will allow 'guest' aka 'anonymous' to also read the list of files
  6. Using Terminal.app edit the /Library/Server/FTP/Config/ftpd.conf file (you may need to experiment but something like the following would be a starting point)
  7. Now turn the FTP service on


# the FTP document for OS X Server users

chroot real /Users/Shared/ftp-root


# match umask from Mac OS X Server ftpd

umask all 022

chroot GUEST /Users/Shared/ftp-root

modify guest on

upload guest off


#disable homedirs

homedir all /


Note: You will probably find that having a space in the chroot path will cause problems, however as you indicate it is currently working for authenticated users this probably does not apply to you.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Anonymous FTP users can't view files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.