Ever forgotten what number means what in terms of #Linux permissions? Here's a little note I keep on hand.

#security

CHMOD By the Numbers
========================
0 = No permissions
1 = x
2 = w
3 = wx
4 = r
5 = rx
6 = rw
7 = rwx

Follow

@gerowen
rwx
000 - 0
001 - 1
010 - 2
011 - 3
100 - 4
101 - 5
110 - 6
111 - 7

@jc @gerowen and honestly you can also just use the letters as well in chmod, for instance "chmod u+x" adds user execute permission to the current value (probably the most common use most people will see), and the append syntax is generally preferable to fully overwriting permissions (unless that's the intent)

@raptor85 @jc Oh I know, I just wanted to share that little note I keep on hand.

Sign in to participate in the conversation
Librem Social

Librem Social is an opt-in public network. Messages are shared under Creative Commons BY-SA 4.0 license terms. Policy.

Stay safe. Please abide by our code of conduct.

(Source code)

image/svg+xml Librem Chat image/svg+xml