Skip to content

Commit 78fbee8

Browse files
Updated wsl-config.md to include mount option descriptions
1 parent 3f35034 commit 78fbee8

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

WSL/wsl-config.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,20 @@ By default, WSL sets the uid and gid to the value of the default user (in Ubuntu
275275

276276
**Note:** These options are applied as the mount options for all automatically mounted drives. To change the options for a specific drive only, use /etc/fstab instead.
277277

278+
##### Mount options
279+
280+
Setting different mount options for Windows drives (DrvFs) can control how file permissions are calculated for Windows files. The follow options are available:
281+
282+
| Key | Description | Default |
283+
|:----|:----|:----|
284+
|uid| The User ID used for the owner of all files | The default User ID of your WSL distro (On first installation this defaults to 1000)
285+
|gid| The Group ID used for the owner of all files | The default group ID of your WSL distro (On first installation this defaults to 1000)
286+
|umask | An octal mask of permissions to exclude for all files and directories | 000
287+
|fmask | An octal mask of permissions to exclude for all files | 000
288+
|dmask | An octal mask of permissions to exclude for all directories | 000
289+
290+
**Note:** The permission masks are put through a logical OR operation before being applied to files or directories.
291+
278292
#### network
279293

280294
Section label: `[network]`

0 commit comments

Comments
 (0)