File permissions: Difference between revisions

From XPUB & Lens-Based wiki
No edit summary
No edit summary
 
Line 22: Line 22:


[[Category:Cookbook]]
[[Category:Cookbook]]
[[Category:Bash]]

Latest revision as of 17:59, 30 October 2023

change ownership

$ chown -R USERNAME:GROUPNAME foldername

change rwx permissions

$ chmod -R rwx+ugo foldername
r = read
w = write
x = execute
u = user
g = group
o = others
drwxrwxrwx
 u  g  o
d = directory