how to recursively all files in a folder with sudo permissions in macOS
write bug
OK
sudo chmod 777
$ sudo chmod -R 777 foldername
$ sudo chmod 777 foldername
$ chmod -R ug+rw foldername
$ chmod -R +rw foldername
$ chmod -R ug+rw foldername
# For more information:
$ man chmod
$ cd /path/foldername/
$ sudo chown -R $(whoami)
# OR
$ sudo chown -R username
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!