Solved!! data directory "/var/lib/postgresql/10/main" has group or world access

Error:   data directory "/var/lib/postgresql/10/main" has group or world access: Permission should be u=rwx

Solution: 

  1. sudo -R 0700 /var/lib/postgresql/10/main
  2. Then type: sudo service postgresql start