Use chown -R for user premission in linux

[av_codeblock wrapper_element=” wrapper_element_attributes=” codeblock_type=” av_uid=’av-lf4zais4′ custom_class=”]

Grant user premission using chown command in linux

Linux command for grant all permission to specified folder. Permission like 755, that folder can can read/write/execute.

chown -R www-data: public/


sudo chown -R www-data: public/

chown change the ownership of a file or folder or multiple folder or directory with sub directory for a specified group. first I explain you sudo, sudo stands for superuser, user act like root user that have all permission. In other words, sudo gives you privilege same like root user. -R use for all subfolder in a directory www-data: User that web servers on linux web server, use by default for normal operation. www-data user can access any file in web server.