Unix File Permissions Cheat Sheet

March 24, 2008

I am always forgetting what numbers have what permissions, so I made myself a text file with the answer. I use it so much I figure I may as well share it with all of you. I hope you find it useful. These numbers will work on any Unix based operating system. This includes Linux and Mac OS X.

1 = execute
2 = write
3 = execute write
4 = read
5 = read execute  4 + 1
6 = read write    4 + 2
7 = read write execute 4 + 2 + 1