Posts tagged with “permissions

Changing ownership with chown

Need to CHange the OWNer of a file or directory? chown [new owner] [file or directory] If, for example, I wanted to change the owner of /var/www/vhosts/my_website/tmp to “root” I’d run this: chown root /var/www/vhosts/my_website/tmp If you want to apply the ownership change recursively — that is, to all subdirectories and/or files within — add […]

Changing permissions with chmod

Here’s the syntax for CHanging permissions or MODe — also known as chmod — for files and directories: chmod [permissions] /path/to/file/or/directory The three possible users are: file owner group of authorized users everyone else (a.k.a. “the world”) The possible actions (and associated binary values) are: 4: read 2: write 1: execute Total the values for […]