Set User and Group Permissions Correctly in Linux (Ubuntu)
I often struggle to get the file permissions set up correctly in Linux, especially in a web server setup.
However I think I've finally stumbled upon the magic incantations to make it all work...
Set the group / owner of a directory recursively:
A Couple of Tips for Using PHP at the Command Line
On vary rare occasion I find it useful to run php in the command line.
There are a couple of easy ways to do this, but the first thing you might want to do is check your php version.
This is easily…
How to get Octal File Permissions from the Command Line
Just putting this here as a note for myself.
File permissions in Linux can be displayed in octal format using Linux stat command.
stat -c '%A %a %n' *
%A Access rights in human readable form
%a Access rights in octal
%n File name