Skip to content

Instantly share code, notes, and snippets.

@marcobellaccini
Last active January 23, 2021 13:00
Show Gist options
  • Save marcobellaccini/a6e5518198f6485e2af80f57755b42cc to your computer and use it in GitHub Desktop.
Save marcobellaccini/a6e5518198f6485e2af80f57755b42cc to your computer and use it in GitHub Desktop.
Are you sure you know file-system permissions and file attributes?

Are you sure you know file-system permissions and file attributes?

TEST YOUR SKILLS!

Here you can check your answers!

Windows - NTFS Linux – ext4
Changing file owner requires elevated privileges (/root) YES YES
Users other than the owner can change file permissions YES, if they have «read permissions» and «change permissions» advanced permissions NO
Simple users can write to a file on which they have read-only permissions NO NO
Elevated users (/root) can write to a file on which they have read-only permissions NO YES
Simple users can delete a file on which they have read-only permissions NO YES, with a warning message
Elevated users (/root) can delete a file on which they have read-only permissions YES YES
Simple users can change file attributes (i.e.: read-only, compressed… NOT permissions!) YES, if they have the permissions to modify those attributes NO
Users can delete a file with read-only attribute set YES, if they have «delete» permissions NO
Elevated users (/root) can delete a file with read-only attribute set YES, if they have «delete» permissions NO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment