File permissions

From XPUB & Lens-Based wiki

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