Windows 10でWSL Ubuntuを修正する方法は?許可されていない操作

Windows 10でWSL Ubuntuを修正する方法は?許可されていない操作

Windows 10でWSL、ubuntuを使用していますが、以下のように権限を設定したいのですがエラーが発生します。なぜ?どうすれば解決できますか?

ubuntu-user@LAPTOP:~$ chmod 400 .ssh/MyKey.pem
chmod: changing permissions of '.ssh/MyKey.pem': Operation not permitted

ベストアンサー1

これらのコマンドは単一のセッション内でのみ使用でき、端末を開くたびに再入力する必要があります。私はこのように問題を解決しました。

sudo umount /mnt/c
sudo mount -t drvfs C: /mnt/c -o metadata
chmod 400 [fileName] or chmod 700 [fileName]

引用: https://stackoverflow.com/questions/46610256/chmod-wsl-bash-doesnt-work

おすすめ記事