File and directory ownership managing

ls -l ‘file or directory’
sudo chown -R apache:apache ‘file or directory’
sudo chmod -R g+w template

– ensure your user is part of the apache user group (centos, www-data for oher linux)

Refs:
http://www.yolinux.com/TUTORIALS/LinuxTutorialManagingGroups.html
https://www.2daygeek.com/linux-chown-command-change-file-directory-folder-user-group-ownership/
https://askubuntu.com/questions/175054/how-to-find-owner-and-group-of-a-directory

1 thought on “File and directory ownership managing”

  1. Pingback: Laravel setup: permission denied – Digital Creative

Leave a Reply

Your email address will not be published. Required fields are marked *