Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AndrewWCarson/f9254d6116243964d4ce4cc577e77719 to your computer and use it in GitHub Desktop.
Save AndrewWCarson/f9254d6116243964d4ce4cc577e77719 to your computer and use it in GitHub Desktop.
username@macos-10 ~ % sudo touch /lol
touch: /lol: Read-only file system
username@macos-10 ~ % sudo chmod +x /
username@macos-10 ~ % ls -al /
total 21
drwxr-xr-x 30 root admin 960 Jun 7 16:13 .
[ truncated ]
username@macos-10 ~ % sudo chmod -x /
chmod: Unable to change file mode on /: Operation not permitted
username@macos-10 ~ % sudo chmod +w /
username@macos-10 ~ % ls -al /
total 21
drwxr-xr-x 30 root admin 960 Jun 7 16:13 .
[ truncated ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment