On this page

No sudo Permissions

Updated on 2023-11-28 GMT+08:00

Symptoms

The following log information is displayed.

"stderr": "error: cannot open Packages index using db5 - Permission denied (13)\nerror: cannot open Packages database in /var/lib/rpm\nCRITICAL:yum.main:\ Error: rpmdb open failed"

Cause Analysis

The user does not have the sudo permission and cannot use yum to download related dependencies.

Solution

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.

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback