Change permission of folder in Ubuntu


Use chmod command in Linux or Ubuntu to set the permission of a file or folder. In Ubuntu all the files and folder have permission to execute, read and write. If the file is of type Directory then it restricts different actions. Only root user has permission to access any files in the system.

There are three types of access permission

Permission
Action
chmod option
read
(view)
r or 4
write
(edit)
w or 2
execute
(execute)
x or 1

 chmod 777 /var/www/test  

This command is set read, write, and execute permission to "/var/www/test" folder

Same way if you require to apply permission Recursive with -R

chmo d -R 777 /var/www/test  






Nikunj K

Phasellus facilisis convallis metus, ut imperdiet augue auctor nec. Duis at velit id augue lobortis porta. Sed varius, enim accumsan aliquam tincidunt, tortor urna vulputate quam, eget finibus urna est in augue.