gerowen,
@gerowen@mastodon.social avatar

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

CHMOD By the Numbers

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

jc,

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

raptor85,
@raptor85@mastodon.gamedev.place avatar

@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)

gerowen,
@gerowen@mastodon.social avatar

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux
  • DreamBathrooms
  • everett
  • InstantRegret
  • magazineikmin
  • thenastyranch
  • rosin
  • GTA5RPClips
  • Durango
  • Youngstown
  • slotface
  • khanakhh
  • kavyap
  • ngwrru68w68
  • tacticalgear
  • JUstTest
  • osvaldo12
  • tester
  • cubers
  • cisconetworking
  • mdbf
  • ethstaker
  • modclub
  • Leos
  • anitta
  • normalnudes
  • megavids
  • provamag3
  • lostlight
  • All magazines