Hi,
How do give a permission to a user to read and write all the subdirectories and sub files in a folder? Code below gives permission on project_1 folder only. I need files and directories stored in project_1 as well.
Thanks

sudo chmod 777 userme /var/www/project_1/
sudo chown -hR userme /var/www/project_1/

Use the -R flag for chmod to make the permissions recursive.

Super. Thanks

chmod -R 777  /var/www/project_1/
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.