Permissions
File and directory permissions are given with standard Linux permissions. A permission "mode" is typically given as an octal number (such as 0750), where each digit is made of read (carrying value of 4), write (carrying value of 2) and execute/search permissions (carrying value of 1), so for example 7 means having read, write and execute/search permissions (since 7=4+2+1). The first digit refers to permissions given to user, second digit to those given to user's group, and third digit to those given to everyone.
Files in Golf directories are generally created with 700 privileges, meaning only the user who owns the application can access them and other users (even within the same group) cannot. The same goes for directories created by new-dir by default, unless "mode" specifies differently.
Files created by Golf (including open-file and write-file) are created with 600 permissions, meaning only the user who owns the application can access them and other users (even within the same group) cannot.
You can use stat-file to obtain permission mode for a file or directory, and change-mode to set it. Note that, most of the time, you won't need to do this at all. If you do, however, you should change permission modes carefuly and keep in mind the implications for both your application's security and functionality.
General
about-golf
directories
permissions
See all
documentation
Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.