Open nkrishnakishor opened 5 years ago
@Akm0d Can you please try to reproduce this?
Yes, I can reproduce the issue on master. i followed the instructions here and still got the Authentication error
Could this be elevated in importance because of the recent security issue?
Hi,
Hope you guys are safe and doing great.
Do we have any update on this please ?
@nkrishnakishor can you confirm this is still an issue in a supported Salt version? >v3000.9?
This appears to be happening because salt updates the permissions on it's directories on salt-master boot.
Update your systemd unit with these lines:
ExecStartPost=/usr/bin/chown -R root:salt /var/run/salt/master
ExecStartPost=/usr/bin/chmod 755 /var/cache/salt /var/cache/salt/master /var/cache/salt/master/jobs /var/run/salt /var/run/salt/master
In my case, the group 'salt' contains users who are allowed to access these directories.
Additionally, don't forget to give users permission to write to /var/log/salt files.
NOTE; Authentication error occurred. can happen if you have two masters trying to run at once.
Description of Issue
Unable to execute commands as non-root, throwing error as Authentication error occurred.
Setup
I have run
chown -R user1 /etc/salt /var/cache/salt /var/log/salt /var/run/salt
andchown -R :group_name /etc/salt /var/cache/salt /var/log/salt /var/run/salt
.cat /etc/salt/master
Steps to Reproduce Issue
$ salt user1 '*' test.ping
Versions Report
salt --versions-report