Updated on 2023-09-13 GMT+08:00

No Permission to Access the Path

Symptoms

The following log information is displayed.

"msg": "There was an issue creating /usr/local/python3.6.7 as requested: [Errno 13] Permission denied: '***'", "path": "***", "state": "absent"

Cause Analysis

The user does not have the permission to access the path.

Solution

Use any of the following methods:

  • Use the file path that can be accessed by the current user.
  • Use a user account with higher permissions, for example, root.
  • Grant higher permissions to the user by adding 'user ALL=(ALL) ALL' to the /etc/sudoers file. user indicates the user to grant higher permissions to.