Change permission of folder in Ubuntu

Share:

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  






No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();

Ads