OS X Yosemite (10.10) and older:

  1. Applications → Utilities → Disk Utility

  2. Select the startup disk from the list of volumes.

  3. Click the First Aid tab.

  4. To check permissions, click Verify Disk Permissions. To repair permissions, click Repair Disk Permissions.

Source: https://support.apple.com/en-au/HT201560

You can also do it from Terminal using the diskutil command.

OS X El Captian (10.11):

  1. Applications → Utilities → Terminal

  2. To verify permissions:

    sudo /usr/libexec/repair_packages --verify --standard-pkgs /

  3. To repair permissions:

    sudo /usr/libexec/repair_packages --repair --standard-pkgs /

Type your password when prompted. You'll need to be root or a member of the admin group.