什麼會阻止 lsattr 在 WSL2 中列出 Linux 中檔案的屬性?

什麼會阻止 lsattr 在 WSL2 中列出 Linux 中檔案的屬性?

Windows 10 -> WSL 2 Pengwin (Debian) (這個問題與 WSL 1) 相關

我正在嘗試修改可執行檔(npm在本例中),但一直被拒絕。在這個階段,我只想至少lattr查看該文件是否不可變,但不明白為什麼不可變。

修改為sudo mv npm npm_from_apt

mv: cannot move 'npm' to 'npm_from_apt_install': Permission denied

更改權限sudo chmod 744 npm

chmod: changing permissions of 'npm': Permission denied

檢查它是否不可變lsattr npm

lsattr: Operation not supported While reading flags on npm

它也不是符號鏈接ls -l npm

-r-xr--r-- 1 quack quack 324 Jun 1 2021 npm

我還應該嘗試什麼?

相關內容