我在 Windows 10 上使用 Ubuntu bash,在使用 chmod 命令时遇到问题。我尝试更改在 ubuntu 中创建的具有以下路径的文件的权限:
devenv@XXXXXX:/mnt/c/mykeys/amo_dev$ ls -rtl
cdtotal 8
-rwxrwxrwx 1 devenv devenv 1464 Jun 17 10:06 amo_dev.ppk
-rwxrwxrwx 1 devenv devenv 1675 Jul 30 18:26 amo_dev.pem
devenv@XXXXXX:/mnt/c/mykeys/amo_dev$ sudo chmod 600 amo_dev.pem
[sudo] password for devenv:
devenv@XXXXXX:/mnt/c/mykeys/amo_dev$ ls -lrt
total 8
-rwxrwxrwx 1 devenv devenv 1464 Jun 17 10:06 amo_dev.ppk
-rwxrwxrwx 1 devenv devenv 1675 Jul 30 18:26 amo_dev.pem
devenv@XXXXXX:/mnt/c/mykeys/amo_dev$ uname -a
Linux NCS-100619GM01 4.4.0-17134-Microsoft #706-Microsoft Mon Apr 01 18:13:00 PST 2019 x86_64 x86_64 x86_64 GNU/Linux
devenv@XXXXXX:/mnt/c/mykeys/amo_dev$ cat /etc/os-release*
NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic