Home Forums OS X Server and Client Discussion File Serving How to change default file permissions for the FTP service

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #373224
    vfranklin
    Participant

    I am trying to setup our ftp server such that anyone who belongs to a particular group can modify anything anyone else in that group has saved to the ftp share. By default, it looks like anything uploaded to our ftp share has the permissions -rw-r–r–, this makes it impossible others in the same group to modify files. I would like to set the default permissions on the server to -rw-rw-r–, but can’t seem to get it to work. I am running 10.4.11 Server and using the OS X Server FTP service.

    I have tried using 2 different techniques, neither of which worked.

    First Technique – from Apples support site

    ————————————————————–
    Article 301328 of Apple’s support page:

    Mac OS X Server 10.2 and later: How to change default file permissions for the FTP service

    When you upload a file over FTP, the resulting file includes the default UNIX permissions as if you created the file on your desktop. In a group work environment, this can prevent others from modifying the file. If you want to implement more useful permissions, edit the server’s “ftpaccess” configuration file.

    1. Open the file /Library/FTPServer/Configuration/ftpaccess in a text editor. (See “How to Locate and Edit Configuration Files” for more information.)
    2. Type the following line at the end of the file:

    defumask -uMask-

    Where umask is an actual umask value, such as 002 (see “About umask values,” below).
    3. Save the file.
    4. Restart the FTP service.

    ————————————————————–
    I set my umask to “002” But this did not work.

    I found the second technique somewhere on the web… it is supposed to set the default mask:

    Here is the procedure:

    ————————————————————–
    launchctl unload /System/Library/LaunchDaemons/ftp.plist

    edit /System/Library/LaunchDaemons/ftp.plist and add a new ProgramArgument:

    This:

    ProgramArguments

    xftpd
    -a

    becomes:

    ProgramArguments

    xftpd
    -a
    -u0002

    and then to complete the change:

    launchctl load /System/Library/LaunchDaemons/ftp.plist

    ————————————————————–

    None of the above works. Can anyone shed some light on this?

    Any help is greatly appreciated.

    #373332
    byrd62au
    Participant

    Apples FTP server is a dog. Use Crush FTP. It’s $30 for 100 user and it rocks. The documentation and support is as good as it gets and it’s a breeze to setup the kind of thing you want to. crushftp.com

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

Comments are closed