You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Can't run Salt as a standard (non-admin) user on Windows. It tries to read a registry key from HKLM:\SOFTWARE\Salt Project\Salt. Is there a valid reason to lock down this registry key?
Setup
Install Salt using standard installer
Create a config file for the user: C:\Users\<username>\Salt\conf\minion
Please be as specific as possible and give set-up details.
on-prem machine
VM (Virtualbox, KVM, etc. please specify)
VM running on a cloud service, please be explicit and add details
container (Kubernetes, Docker, containerd, etc. please specify)
or a combination, please be explicit
jails if it is FreeBSD
Steps to Reproduce the behavior
Run salt-call: salt-call --local -c "C:\Users\<username>\Salt\conf" test.ping
StackTrace:
C:\Windows\system32>salt-call --local -c "C:\Users\standard.user\Salt\conf" test.ping
Traceback (most recent call last):
File "C:\Program Files\Salt Project\Salt\bin\Scripts\salt-call", line 4, in <module>
__import__('pkg_resources').run_script('salt==3004', 'salt-call')
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\pkg_resources\__init__.py", line 656, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\pkg_resources\__init__.py", line 1453, in run_script
exec(code, namespace, namespace)
File "c:\program files\salt project\salt\bin\lib\site-packages\salt-3004-py3.8.egg\EGG-INFO\scripts\salt-call", line 10, in <module>
salt_call()
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\scripts.py", line 426, in salt_call
import salt.cli.call
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\cli\call.py", line 3, in <module>
import salt.cli.caller
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\cli\caller.py", line 14, in <module>
import salt.loader
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\loader\__init__.py", line 14, in <module>
import salt.config
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\config\__init__.py", line 17, in <module>
import salt.syspaths
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\syspaths.py", line 128, in <module>
ROOT_DIR = _get_windows_root_dir()
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\syspaths.py", line 99, in _get_windows_root_dir
root_dir = salt.utils.win_reg.read_value(
File "C:\Program Files\Salt Project\Salt\bin\lib\site-packages\salt-3004-py3.8.egg\salt\utils\win_reg.py", line 537, in read_value
handle = win32api.RegOpenKeyEx(hkey, local_key, 0, access_mask)
pywintypes.error: (5, 'RegOpenKeyEx', 'Access is denied.')
Expected behavior
Should be able to run salt as a standard (non-admin) user
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3004Dependency Versions:
cffi: 1.14.6cherrypy: 18.6.1dateutil: 2.8.1docker-py: Not Installedgitdb: 4.0.7gitpython: 3.1.18Jinja2: 2.10.1libgit2: Not InstalledM2Crypto: Not InstalledMako: 1.1.4msgpack: 0.6.2msgpack-pure: Not Installedmysql-python: Not Installedpycparser: 2.20pycrypto: Not Installedpycryptodome: 3.10.1pygit2: Not InstalledPython: 3.8.8 (tags/v3.8.8:024d805, Feb 19 2021, 13:18:16) [MSC v.1928 64 bit (AMD64)]python-gnupg: 0.4.7PyYAML: 5.4.1PyZMQ: 19.0.0smmap: 4.0.0timelib: 0.2.4Tornado: 4.5.3ZMQ: 4.3.2System Versions:
dist:
locale: cp1252machine: AMD64release: 2016Serversystem: Windowsversion: 2016Server 10.0.14393 SP0 Multiprocessor Free
The text was updated successfully, but these errors were encountered:
Description
Can't run Salt as a standard (non-admin) user on Windows. It tries to read a registry key from
HKLM:\SOFTWARE\Salt Project\Salt
. Is there a valid reason to lock down this registry key?Setup
Install Salt using standard installer
Create a config file for the user:
C:\Users\<username>\Salt\conf\minion
Please be as specific as possible and give set-up details.
Steps to Reproduce the behavior
Run salt-call:
salt-call --local -c "C:\Users\<username>\Salt\conf" test.ping
StackTrace:
Expected behavior
Should be able to run salt as a standard (non-admin) user
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: