Fill these in once
- See the permissions
ls -l my-folderr = read, w = write, x = run. As numbers: 7 = rwx, 6 = rw, 5 = rx, 4 = r.
- Make a script runnable
chmod +x my-folder - Give a folder sensible permissions (folders 755, files 644)
find my-folder -type d -exec chmod 755 {} + find my-folder -type f -exec chmod 644 {} + - Make yourself the owner of a folder and everything in itNeeds sudo
sudo chown -R $USER:staff my-folder
- See the permissions
ls -l my-folderr = read, w = write, x = run. As numbers: 7 = rwx, 6 = rw, 5 = rx, 4 = r.
- Make a script runnable
chmod +x my-folder - Give a folder sensible permissions (folders 755, files 644)
find my-folder -type d -exec chmod 755 {} + find my-folder -type f -exec chmod 644 {} + - Make yourself the owner of a folder and everything in itNeeds sudo
sudo chown -R $USER:$USER my-folder
- See the permissions
icacls my-folder - Give yourself full control of a folder and everything in itRun as administrator
icacls my-folder /grant "$($env:USERNAME):(OI)(CI)F" /T - Take ownership of a folder and everything in itRun as administrator
takeown /f my-folder /r /d y