LoginSignup
6
6

More than 3 years have passed since last update.

WSLの/mnt/c以下のパーミッションを変える方法

Posted at

/etc/wsl.confを以下のように編集

/etc/wsl.conf
[automount]
enabled = true
root = /mnt/
options = "metadata,umask=22,fmask=11"
mountFsTab = true

んで再起動

C:\Users\cabbage>wsl -l
Windows Subsystem for Linux ディストリビューション:
Ubuntu-20.04 (既定)
C:\Users\cabbage>wsl -t Ubuntu-20.04
C:\Users\cabbage>wsl

参考元

https://www.atmarkit.co.jp/ait/articles/1807/12/news036.html
https://docs.microsoft.com/en-us/windows/wsl/wsl-config

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6