Home Forums OS X Server and Client Discussion Questions and Answers Enabling CHMOD on FTP Server!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #354877
    legacyb4
    Participant

    As CHMOD seems to be disabled in the default setup, I went poking around inside the [b:4060961e66]ftpaccess[/b:4060961e66] file located in:
    [b:4060961e66]
    /Library/FTPServer/Configuration/
    [/b:4060961e66]
    Scrolling halfway down the file reveals the following:
    [b:4060961e66]
    chmod no anonymous
    delete no anonymous
    overwrite no anonymous
    rename no anonymous
    umask no anonymous
    [/b:4060961e66]
    After temporarily shutting the FTP server off, I added the following line to the beginning of the list:
    [b:4060961e66]
    chmod yes real
    [/b:4060961e66]
    Turning on the FTP server removes the newly added line from the ftpaccess file, but now chmod is enabled…
    [b:4060961e66]
    ftp> mkdir test
    257 “//test” new directory created.
    ftp> chmod 644 test
    200 CHMOD command successful.
    ftp> rmdir test
    250 RMD command successful.
    [/b:4060961e66]
    Not sure if this will last through a reboot, but the setting seems sticky enough to last through multiple on/off switches of the FTP server *without* having had to recompile or reinstall anything! 😀

    Cheers.

    #354916
    legacyb4
    Participant

    Almost embarrassed to mention in public, but here goes…

    Turns out that the chmod problems I was having seem to stem from a non-server issue; the firewall (a Watchguard Firebox) had the “Deny Incoming Site Commands” option enabled on the FTP proxy which effectively killed any ability to run chmod.

    Turn that option off, and now everything is peachy.

    What I did get out of the whole exercise was another chance to configure, compile, and install PureFTP though…

    Cheers.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed