GOLF(2gg)
๐ GOLF(2gg) โ permissions
okay bestie, welcome to GOLF(2gg) โจ this is the permissions page โ Golf documentation (general). yes it's the general one. yes it's important. no you can't skip it ๐ซถ
๐ธ NAME ๐ธ
permissions โ Golf documentation (general)
โจ DESCRIPTION โจ
okay so. file and directory permissions in Golf are given with standard Linux permissions. that's the vibe. a permission "mode" is typically given as an octal number (such as 0750), where each digit is made of:
- read โ carrying a value of
4 - write โ carrying a value of
2 - execute/search โ carrying a value of
1
so for example 7 means having read, write and execute/search permissions, since 7=4+2+1 ๐งฎ math ate, honestly.
and then the digits go like this, in order:
- the first digit refers to permissions given to user
- the second digit refers to those given to the user's group
- the third digit refers to those given to everyone
๐ how Golf actually makes stuff ๐
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. it's giving exclusive. it's giving main character only ๐
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. periodt ๐
๐ฆ checking and changing the vibes ๐ฆ
you can use stat-file to obtain the permission mode for a file or directory, and change-mode to set it.
ngl, most of the time, you won't need to do this at all. but if you do?? you should change permission modes carefully and keep in mind the implications for both your application's security and functionality. no cap, this is the part where you actually read the warning ๐ญ
๐ SEE ALSO ๐
- General
about-golfdirectoriespermissions- See all documentation
okay that's the whole page, you're so smart for reading it ๐ซถ this was $VERSION, dated $DATE, and it's still GOLF(2gg) โ go forth and set your modes responsibly bestie ๐โจ
๐ฆ where this page comes from
- ubuntu questing: golf 601.4.41-1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms