-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
runsas broken on Fedora29 #51055
Comments
I wonder if this is related to or the same as #46417? FWIW, I didn't have this problem using 2018.3.2 on macOS. |
I can work around this problem without any patches by replacing |
can you clarify the entire command you are running to help replicate this issue? |
I'm currently running this script without arguments:
...which in turn runs this script:
But, I think the key is whether you run |
This must be related with #51008 |
thanks for pointing that out @cdalvaro |
Both issues are related to problems with The patch offered for #51008 is a darwin-specific fix; my patch above addresses the UID checking problem on all? platforms. |
thank for clearing that up for me. mind submitting your change up as a PR and we can get more eyes on the fix. I imagine we will still want to check if runas is not None as well. |
We're getting same/similar issues.
Version:
|
Still present in # salt-call -V
Salt Version:
Salt: 2019.2.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 1.5
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
ioflo: Not Installed
Jinja2: 2.7.2
libgit2: Not Installed
libnacl: Not Installed
M2Crypto: 0.31.0
Mako: Not Installed
msgpack-pure: Not Installed
msgpack-python: 0.5.6
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: 2.6.1
pycryptodome: Not Installed
pygit2: Not Installed
Python: 2.7.5 (default, Jun 11 2019, 14:33:56)
python-gnupg: Not Installed
PyYAML: 3.11
PyZMQ: 15.3.0
RAET: Not Installed
smmap: Not Installed
timelib: Not Installed
Tornado: 4.2.1
ZMQ: 4.1.4
System Versions:
dist: redhat 7.7 Maipo
locale: UTF-8
machine: x86_64
release: 3.10.0-1062.1.1.el7.x86_64
system: Linux
version: Red Hat Enterprise Linux Server 7.7 Maipo |
Any traction on this? |
Works if you set the group parameter to the cmd module, ie:
Without group:
With group:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. If this issue is closed prematurely, please leave a comment and we will gladly reopen the issue. |
. |
Thank you for updating this issue. It is no longer marked as stale. |
@luxi2001 Which version of Salt are you using? I encountered this problem running 2018.3.2 on Fedora 29. I'm now running 2019.2.1 on CentOS 8. This is the relevant code in |
@c-wicklein We're running 2019.2.0 on CentOS 7.4 and RHEL 7.7. We had to add the group parameter to all our |
Still a problem on Fedora 33, probably for the same reason (both ran as root):
Worked around by using |
The
runas
option isn't effective on Fedora 29 withsalt-2018.3.2-5.fc29.noarch
becausegetpass.getuser()
while running as root is returning therunas
username. This affectscmd.run,
git.latest,
etc. I am running salt from an interactive shell as userme
withsudo salt-call ...
exclusively, so it might be specific to that use case.I've fixed it for myself with this patch:
The text was updated successfully, but these errors were encountered: