Skip to content

Control default new file permissions with custom umask #289

@jil24

Description

@jil24

It would be very useful to be able to set a custom umask. Currently the default umask for the entire system/user is used and can't be controlled from the GUI.

I need to have "Ignore Permissions" on one of my Syncthing shares in order for it to be usable. However, when running Syncthing via the GUI, this results in it creating new files using Mac OS's default umask, which is 022. This results in new file permissions of 644 and directory permissions of 755. I would like to launch the syncthing process with umask 002, resulting in new file permissions of 664 and directory permissions of 775.

I don't think this needs to be GUI exposed. Could be a hidden preference. What I'm currently doing is running the entire Syncthing.app using a shell script that launches it in a subshell with a custom umask, but this is clunky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions