Chmod/Chown WSL改进 Running bash on windows 10, the simple syntax below works when I SSH to my webserver, but not when I exit out and am on my local machine. It doesn't give me an error, but I can see permissions are unchanged. I have to checked that I am set up as an administrator on my computer. Is this an error or is this just a consequence of the local operating system being windows? IF the later, it makes me question the value of using bash on windows if common operations such as this won't work. $chmod 644 filename 解决方案 Amade's answer is correct, but please note, the cmd only take effect in session scope. If you exit current bash, you'll lose your setting.To fix this, you need to edit /etc/wsl.conf. and put below config in.[automount]enabled = trueoptions = "metadata"Ref:Automatically Configuring WSLChmod/Chown WSL Improvements 这篇关于chmod WSL(Bash)不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
09-13 13:52