the install command is handy for making directories and setting permissions/etc all in one go: install -m 755 -o postgres -g root -d /var/run/postgres
install
install -m 755 -o postgres -g root -d /var/run/postgres
linux sysadmin