Possible reasons for SUSE Manager to report "Access denied to UID postgres via sudo."
This document (7023801) is provided subject to the disclaimer at the end of this document.
Environment
Situation
1. Running smdba returns:
susemanager:/root/ #smdba system-check autotuning --max_connections=400
Cannot parse line: root is not in the sudoers file. This incident will be reported.
Backend error:
Access denied to UID "postgres" via sudo.
09:32:13 Tune new postgresql configuration...
Backend error:
Access denied to UID "postgres" via sudo.
25100 write(2, ">>> /etc/sudoers: Alias \"CONFIG_RHN\" already defined near line 90 <<<\n", 70) = 70
25100 write(2, "parse error in /etc/sudoers near line 90", 40 <unfinished ...>
Resolution
Cause
Additional Information
https://www.suse.com/de-de/support/update/announcement/2018/suse-ru-20182874-1/
Fix /etc/sudoers.d/spacewalk file. (related to bsc#1099517) NOTE: In case there have been custom modifications to this file, it will be saved in /root/sudoers-spacewalk.save as sudo will fail on duplicate definitions
strace -f -s 1024 -o /root/smdba.strace smdba system-check autotuning --max_connections=400
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7023801
- Creation Date: 01-Apr-2019
- Modified Date:03-Mar-2020
-
- SUSE Manager
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com