Maybe the easiest way to solve this, to check if your system has all the permissions like it should have.
If not, please change them.
How it should be:
drwxr-xr-x 3 salt salt /var/lib/
drwx------ 2 salt salt /var/lib/.ssh/
-rw-r--r-- 1 salt salt /var/lib/salt/.ssh/known_hosts
Please check also /etc/sudoers.d/ . There should be only 1 file called spacewalk and it should contain,
beside of others, the following line:
tomcat ALL=(root) NOPASSWD: /usr/bin/ls -la /var/lib/salt/.ssh/known_hosts
Bookmarks