Home
PHP
Tech Tube
MySQL
Linux
CSS&HTML
JavaScript

File permissions in Linux

The basics scheme: 0 --- no permission 1 --x execute 2 -w- write 3 -wx write and execute 4 r-- read 5 r-x read and execute 6 rw- read and write 7 rwx read, write and execute The detailed explanation: https://en.wikipedia.org/wiki/File_system_permissions Recursive change of permissions of directory:
chmod -R 755 /var/www/example/
Recursive change of directory owner:
chown -R username /var/www/example/
Recursive change of directory group:
chgrp -R username /var/www/example/