Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

umask docs #1767

Closed
uecasm opened this issue Jun 1, 2023 · 3 comments · May be fixed by #2004
Closed

umask docs #1767

uecasm opened this issue Jun 1, 2023 · 3 comments · May be fixed by #2004

Comments

@uecasm
Copy link

uecasm commented Jun 1, 2023

Documentation Issue

User file-creation mode mask (umask) sets permission for newly created files. The default is 022, only you can write data but anyone can read data.

The default shown in the table above this was 000. At least one of these must be incorrect.

The permission masks are put through a logical OR operation before being applied to files or directories.

A set bit in the umask results in a clear bit in the actual permissions (assuming it works how umask usually does, as the cited example seems to confirm); so it's more like a NAND, definitely not an OR.

Link to documentation page

https://learn.microsoft.com/en-us/windows/wsl/wsl-config#wsl-2-settings

Suggested Improvements

No response

@uecasm
Copy link
Author

uecasm commented Jun 1, 2023

Also, since this uses the issue type templates it makes the "submit feedback for this page" button not work as intended...

@mattwojo
Copy link
Collaborator

Thanks for pointing this out @uecasm ! I fixed the umask default listed in the table in 8c167d6

I'm not quite sure what you mean about the issue type template making "submit feedback for this page" not work... I just tried selecting that link on the bottom of the live page and it seemed to work fine. (?)

mattwojo added a commit that referenced this issue Jul 18, 2023
* Update with more backport details

As addressed in #876

* Use gnome-text-editor to replace gedit in the introduction of the document (#1754)

* Fix small typo: `instal` ➝ `install` (#1745)

* Fix weird codeblock in Server (#1756)

* Add Systemd doc (#1772)

* Add systemd tutorial

* Add config page link

* Update ubuntu default and toc location

* Update default in intro

* fix screenshot

* Tweak sysv wording, fix image

* Fix image

* removed apostrophe (#1765)

* removed apostrophe

* converted ordered list to bullet list

* Update troubleshooting.md (#1748)

* Update troubleshooting.md

Add a solution for use wsl remotely by using OpenSSH on windows

* Add a space after header

* Update WSL/troubleshooting.md

---------

Co-authored-by: Matt Wojciakowski <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>

* Update database tutorial to reflect systemd support (#1778)

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* Issue resolutions (#1779)

* Add drvfs mount method

As suggested in #1760

* Add note about WSL 2 version requirement

Resolves #1757

* Add explainer for kernel install step

Resolves #1758

* add update command to kernel explainer

* Fix Git Credential Manager version commands

* Add issue link

Based on request in #1729

* Add note about second distro requirement

Resolves #1775 and #1769

* Typo

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* More issue updates

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>

* Fix umask default in table

Resolves #1767

---------

Co-authored-by: Ling Hengqian <[email protected]>
Co-authored-by: Michael Rienstra <[email protected]>
Co-authored-by: Erisa A <[email protected]>
Co-authored-by: Soham <[email protected]>
Co-authored-by: Evsio0n <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>
@uecasm
Copy link
Author

uecasm commented Jul 18, 2023

I'm not quite sure what you mean about the issue type template making "submit feedback for this page" not work... I just tried selecting that link on the bottom of the live page and it seemed to work fine. (?)

When that button is clicked it goes to the https://github.com/MicrosoftDocs/WSL/issues/new/choose page. After clicking on the button there it opens up the corresponding mostly-blank template without the boilerplate that the learn site expects.

Compare for example with what happens when the same button is clicked at https://learn.microsoft.com/en-us/windows/dev-environment/

mattwojo added a commit that referenced this issue Jul 31, 2023
* Update with more backport details

As addressed in #876

* Use gnome-text-editor to replace gedit in the introduction of the document (#1754)

* Fix small typo: `instal` ➝ `install` (#1745)

* Fix weird codeblock in Server (#1756)

* Add Systemd doc (#1772)

* Add systemd tutorial

* Add config page link

* Update ubuntu default and toc location

* Update default in intro

* fix screenshot

* Tweak sysv wording, fix image

* Fix image

* removed apostrophe (#1765)

* removed apostrophe

* converted ordered list to bullet list

* Update troubleshooting.md (#1748)

* Update troubleshooting.md

Add a solution for use wsl remotely by using OpenSSH on windows

* Add a space after header

* Update WSL/troubleshooting.md

---------

Co-authored-by: Matt Wojciakowski <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>

* Update database tutorial to reflect systemd support (#1778)

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* Issue resolutions (#1779)

* Add drvfs mount method

As suggested in #1760

* Add note about WSL 2 version requirement

Resolves #1757

* Add explainer for kernel install step

Resolves #1758

* add update command to kernel explainer

* Fix Git Credential Manager version commands

* Add issue link

Based on request in #1729

* Add note about second distro requirement

Resolves #1775 and #1769

* Typo

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* More issue updates

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>

* Fix umask default in table

Resolves #1767

* Update networking access to WSL 2 distro via LAN and IP address to basic commands (#1789)

* Add drvfs mount method

As suggested in #1760

* Add note about WSL 2 version requirement

Resolves #1757

* Add explainer for kernel install step

Resolves #1758

* add update command to kernel explainer

* Fix Git Credential Manager version commands

* Add issue link

Based on request in #1729

* Add note about second distro requirement

Resolves #1775 and #1769

* Typo

* More issue updates

* Further explain Accessing WSL distro from LAN

* Add IP address commands

---------

Co-authored-by: Ling Hengqian <[email protected]>
Co-authored-by: Michael Rienstra <[email protected]>
Co-authored-by: Erisa A <[email protected]>
Co-authored-by: Soham <[email protected]>
Co-authored-by: Evsio0n <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>
mattwojo added a commit that referenced this issue Aug 28, 2023
* Update with more backport details

As addressed in #876

* Use gnome-text-editor to replace gedit in the introduction of the document (#1754)

* Fix small typo: `instal` ➝ `install` (#1745)

* Fix weird codeblock in Server (#1756)

* Add Systemd doc (#1772)

* Add systemd tutorial

* Add config page link

* Update ubuntu default and toc location

* Update default in intro

* fix screenshot

* Tweak sysv wording, fix image

* Fix image

* removed apostrophe (#1765)

* removed apostrophe

* converted ordered list to bullet list

* Update troubleshooting.md (#1748)

* Update troubleshooting.md

Add a solution for use wsl remotely by using OpenSSH on windows

* Add a space after header

* Update WSL/troubleshooting.md

---------

Co-authored-by: Matt Wojciakowski <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>

* Update database tutorial to reflect systemd support (#1778)

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* Issue resolutions (#1779)

* Add drvfs mount method

As suggested in #1760

* Add note about WSL 2 version requirement

Resolves #1757

* Add explainer for kernel install step

Resolves #1758

* add update command to kernel explainer

* Fix Git Credential Manager version commands

* Add issue link

Based on request in #1729

* Add note about second distro requirement

Resolves #1775 and #1769

* Typo

* FabricBot: Onboarding to GitOps.ResourceManagement because of FabricBot decommissioning (#1783)

* Add prIssueManagement.yml to onboard repo to GitOps.ResourceManagement as FabricBot replacement

Owners of the FabricBot configuration should have received email notification. The same information contained in the email is published internally at: https://aka.ms/gim/fabricbot. Details on the replacement service and the syntax of the new yaml configuration file is available publicly at: https://microsoft.github.io/GitOps/policies/resource-management.html

Please review and merge this PR to complete the process of onboarding to the new service.

* Deleting fabricbot.json

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>

* about.md: fix little typos. (#1786)

* More issue updates

---------

Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>

* Fix umask default in table

Resolves #1767

* Update networking access to WSL 2 distro via LAN and IP address to basic commands (#1789)

* Add drvfs mount method

As suggested in #1760

* Add note about WSL 2 version requirement

Resolves #1757

* Add explainer for kernel install step

Resolves #1758

* add update command to kernel explainer

* Fix Git Credential Manager version commands

* Add issue link

Based on request in #1729

* Add note about second distro requirement

Resolves #1775 and #1769

* Typo

* More issue updates

* Further explain Accessing WSL distro from LAN

* Add IP address commands

* troubleshooting.md: fix typos (#1791)

* Update gui-apps.md (#1794)

wget command does not need sudo especially under /tmp context

* Update install title to include how to

---------

Co-authored-by: Ling Hengqian <[email protected]>
Co-authored-by: Michael Rienstra <[email protected]>
Co-authored-by: Erisa A <[email protected]>
Co-authored-by: Soham <[email protected]>
Co-authored-by: Evsio0n <[email protected]>
Co-authored-by: Craig Loewen <[email protected]>
Co-authored-by: microsoft-github-policy-service[bot] <77245923+microsoft-github-policy-service[bot]@users.noreply.github.com>
Co-authored-by: Ferhat Geçdoğan <[email protected]>
Co-authored-by: thejjw <[email protected]>
jjvliu added a commit to jjvliu/WSL that referenced this issue Aug 9, 2024
Properly fixes MicrosoftDocs#1767 in a way that is consistent with the real behavior of WSL2. Although 8c167d6 removes inconsistency between the automount table and the paragraph on line 93, it does not match the real behavior of WSL2: I observed by experimenting with /etc/wsl.conf that no umask is applied by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants