EMZETT.
Login

Permission Denied

In short: The user lacks permission for a file, directory or action.

In more detail: Frequent on Linux, SSH and when writing files.

In Depth

Possible causes

  • Wrong file permissions or owner.
  • Command needs administrator rights.
  • SSH key not allowed.

Solutions

  1. Look at permissions with ls -l, adjust with chmod/chown.
  2. Run with sudo if necessary.
  3. For SSH: check key permissions (chmod 600) and the entry in authorized_keys (SSH).

See also: Linux, SSH, Bash