How to add permission on directory in Linux Ubuntu

October 3, 2022 · 1 min read

We can add permission in Linux operating system by using below commands on your directory:-

chown -R www-data:www-data /var/www/html/uplods/ur_folder

chmod 755 -R /var/www/html/uploads/ur_folder

Write above both command one by one add permission to your directory in linux ubuntu.

To allow user ec2-user write access to the public web directory (/var/www/html),
enter this command via Putty or Terminal, as the root user sudo:

sudo chown -R ec2-user /var/www/html

Make sure permissions on that entire folder were correct:

sudo chmod -R 755 /var/www/html
How to change user password in linux?
How to Secure yourself on the Internet.
Share on Facebook
Facebook
Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin
Pin on Pinterest
Pinterest