WSL VScode连接文件后无法修改(修改报错)

权限问题
usrname:用户名
dirpath:要修改的文件夹路径
sudo chown -R usrname /dirpath