Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission [Errno 13] Permission denied '/etc/salt/master.d/eauth.conf' #1217

Closed
squarejester opened this issue Jul 7, 2018 · 2 comments
Closed

Comments

@squarejester
Copy link

Description of Issue/Question###

Logging in with root user to do all this.

Installed OpenSUSE Leap 15 and used zypper up and rebooted

Installed zypper salt-master
Installed zypper salt-minion
Installed zypper salt-api
Added all salt-keys

All salt components are the latest version of 2018.

At this point, salt works fine with no errors, tested using various salt commands and saw no issues in logs.

Here is where it comes apart.....

Installed DeepSea after cloning from GitHub as instructed.

salt master immediate fails and constantly logs this in /var/log/salt/master...

Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/salt/utils/process.py", line 747, in _run
return self._original_run()
File "/usr/lib/python3.6/site-packages/salt/master.py", line 223, in run
salt.daemons.masterapi.clean_old_jobs(self.opts)
File "/usr/lib/python3.6/site-packages/salt/daemons/masterapi.py", line 168, in clean_old_jobs
rend=False,
File "/usr/lib/python3.6/site-packages/salt/minion.py", line 868, in init
self.opts['grains'] = salt.loader.grains(opts)
File "/usr/lib/python3.6/site-packages/salt/loader.py", line 712, in grains
default_include, opts['conf_file'], verbose=False
File "/usr/lib/python3.6/site-packages/salt/config/init.py", line 2254, in include_config
opts = read_conf_file(fn)
File "/usr/lib/python3.6/site-packages/salt/config/init.py", line 2110, in _read_conf_file
with salt.utils.files.fopen(path, 'r') as conf_file:
File "/usr/lib/python3.6/site-packages/salt/utils/files.py", line 366, in fopen
f_handle = open(*args, **kwargs) # pylint: disable=resource-leakage
PermissionError: [Errno 13] Permission denied: '/etc/salt/master.d/eauth.conf'

File permissions did not seem to change from before DeepSea install.

salt:/etc/salt # ls -l
total 96
-rw-r----- 1 root salt 51390 Jun 12 04:17 master
drwxr-xr-x 1 root salt 150 Jul 7 12:28 master.d
-rw-r----- 1 root root 35984 Mar 28 15:22 minion
drwxr-x--- 1 root root 28 Jul 7 11:29 minion.d
-rw-r--r-- 1 root root 17 Jul 7 11:27 minion_id
drwxr-x--- 1 root salt 24 Jul 7 11:24 pki
-rw-r----- 1 root salt 344 Mar 28 15:22 roster

The contents of
/etc/salt/master.d/eauth.conf
external_auth:
sharedsecret:
admin:
- .*
- '@runner'
- '@wheel'

Even restarting services or rebooting has no effect.

@jschmid1
Copy link
Contributor

The master.d directory should be owned by 'salt:salt'.

try a chown -R salt:salt /etc/salt/master.d

@jschmid1
Copy link
Contributor

If this is still an issue. Please reopen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants