Bash for Windows をダウンロードしてインストールしました。単純な を実行するls -al
と、多くの許可拒否エラーが発生します。
ユーザーのアクセス許可がどのように解決されているかはよくわかりません。moi
bash シェルで、と呼ばれるユーザーを設定し、ホーム ドライブを持っているとしましょう/home/moi
。するとls -al /mnt/c
、たくさんの許可拒否エラーが発生します。
ls: cannot access /mnt/c/hiberfil.sys: Permission denied
ls: cannot access /mnt/c/pagefile.sys: Permission denied
ls: cannot access /mnt/c/swapfile.sys: Permission denied total 2388
drwxrwxrwx 2 root root 0 Sep 26 18:09 .
drwxr-xr-x 2 root root 0 Jan 1 1970 ..
drwxrwxrwx 2 root root 0 Oct 22 2015 AutoDiscover
-r-xr-xr-x 1 root root 398156 Jul 26 2012 bootmgr
-r-xr-xr-x 1 root root 1 Oct 30 2015 BOOTNXT
「Windows 側」で確認しましたが、という名前の新しいユーザーはいませんmoi
。たとえば、許可が拒否されたと報告された場合、どのユーザーが拒否されているのでしょうかls
?/mnt/c/swapfile.sys
次の質問は次のとおりです。Bash ユーザーを取得し、それを「通常の」Windows ユーザーと呼んで同じ権限を持つにはどうすればよいですか?