Rate This Document
Findability
Accuracy
Completeness
Readability

Failed to Add a Node as a Common User

Symptom

A common user fails to add a node on the Agent management page.

Possible Cause

Common OS users may not have the permission.

Troubleshooting Procedure

  • Method 1: Add the user to the wheel user group.

    After a common user is added to the wheel user group, the user can run any command using sudo, which may cause security risks. Therefore, do not perform this operation in the production environment.

  1. Add common user test1 to the wheel user group.
    1
    usermod -aG wheel test1
    
  2. Open the /etc/login.defs file.
    1
    vim /etc/login.defs
    

    Add SU_WHEEL_ONLY yes to the end of the file.

    1
    SU_WHEEL_ONLY yes
    

    Press Esc, type :wq!, and press Enter to save the file.

  • Method 2: Cancel the OS user verification.
    Open the /etc/pam.d/su file.
    1
    vim /etc/pam.d/su
    

    Locate auth required pam_wheel.so use_uid and prefix the line with a number sign (#).

    1
    #auth required pam_wheel.so use_uid
    

    Press Esc, type :wq!, and press Enter to save the file.

    Do not cancel the verification in the production environment because it may cause security risks.

    Delete the number sign (#) from #auth required pam_wheel.so use_uid in the /etc/pam.d/su file and save the file to restore the OS user verification.