Search code examples
sudoshared-hostingsuitecrm

What is sudo chmod -R 775


I need to know what does the below ssh command does?

sudo chmod -R 775 cache custom modules themes data upload

I am using shared hosting with godaddy, and we do not have access to sudo on ssh.

I am manually setting the permissions to the folders via filezilla

I need to know if the above file permissions is recursive to the "folders and files" within those directories? or if it is "only for the folders" within that directory.


Solution

  • The command recursively makes all permissions 775 on the files / directories which follow

    775 is read write execute for user and group and read + execute for everyone else

    So yes it's recursive looking at the command they really just mean all directories rather than all files and directories