Macos – Enable FTP on OS X 10.8 Mountain Lion Server

ftpmacmacososx-mountain-lion

There is a LAN comprising several mac machines (iMac, Mac Pro, macbook etc.), Airport Express router and Mac Mini Server running OS X Server 10.8 (Mountain Lion Server). I need to share a folder on Mac Mini Server by FTP.

What did I try so far:

  • Made special partition for FTP Access, call it "Reports" So shared
    folder would be "/Volumes/Reports"

  • Gave access every user and group in system, and also enabled guest
    access. I checked posix acl, which is "rwxrwxrwx", I checked sharing
    settings in "Preferences.app" and "Server.app"

  • Checked that users have access to FTP service

  • Enabled FTP in Server.app

I tried access to shared folder (by FTP):

  • via Cyberduck
  • via Finder
  • via shell: ftp server.local

And what I got:

$ ftp ftpuser@server.local
Trying 10.0.2.2...
Connected to server.local.
220 10.0.2.2 FTP server (tnftpd 20100324+GSSAPI) ready.
331 User ftpuser accepted, provide password.
Password: 
530 User ftpuser may not use FTP.

and

$ ftp admin@server.local
Trying 10.0.2.2...
Connected to server.local.
220 10.0.2.2 FTP server (tnftpd 20100324+GSSAPI) ready.
331 User admin accepted, provide password.
Password: 
530 User admin denied by SACL.
ftp: Login failed
ftp> 

(admin is administrator account , ftpuser is special user account made to access ftp)

What I'm doing wrong? Getting really tired of this…

UPD contents of /etc/ftpusers

$ cat /etc/ftpusers
# list of users disallowed any ftp access.
# read by ftpd(8).
Administrator
administrator
root
uucp
daemon
unknown
www

SOLUTION

User account must have home folder (/Volume/Reports in my case), users without home directory can't access FTP share; ALSO user account must have valid shell (/bin/bash)

Best Answer

Sounds like your users aren't on the service access control list for the FTP service. Check in the Users section of Server.app by selecting the user, then choosing "Edit Access to Services" under from the action (gear icon) pop-up menu.

Related Question