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.
- Add common user test1 to the wheel user group.
1usermod -aG wheel test1
- Open the /etc/login.defs file.
1vim /etc/login.defsAdd SU_WHEEL_ONLY yes to the end of the file.
1SU_WHEEL_ONLY yesPress Esc, type :wq!, and press Enter to save the file.
- Method 2: Cancel the OS user verification.
Locate auth required pam_wheel.so use_uid and prefix the line with a number sign (#).
1#auth required pam_wheel.so use_uidPress 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.