If it has the noexec set, you could get around this by seeing the TMPDIR variable to another push within the systemctl service of salt-minion...
sent from my mobile device
-------- Originale Nachricht --------
Von: Simon Avery
Gesendet: Fri Aug 07 12:51:28 GMT+02:00 2020
An: Robert Paschedag
Cc: "uyuni-users@opensuse.org"
Betreff: [uyuni-users] RE: Problem running remote commands with Centos 8
Thanks again to Robert for this pointer, that is indeed the exact cause. Disabling that allowed salt to work properly.
We have noexec enabled on /tmp for scap reasons - and I'm wondering if there is a way for Uyuni to specify another directory where Salt can do its thing rather than off /tmp?
Disabling noexec is not impossible, but if there's an alternative way it would be better for us.
Thanks
S
-----Original Message-----
From: Robert Paschedag
Sent: 04 August 2020 21:06
To: Simon Avery
Cc: uyuni-users@opensuse.org
Subject: [EXTERNAL EMAIL] Re: [uyuni-users] Problem running remote commands with Centos 8
If it has the noexec set, you could get around this by seeing the TMPDIR variable to another push within the systemctl service of salt-minion... Or, if this is possible (and have no problem with that) remove the noexec flag
Robert
sent from my mobile device
-------- Originale Nachricht --------
Von: Robert Paschedag
Gesendet: Tue Aug 04 22:02:07 GMT+02:00 2020
An: Simon Avery
Cc: uyuni-users@opensuse.org
Betreff: Re: [uyuni-users] Problem running remote commands with Centos 8
Please check that /tmp does not have the noexec mount option set.
Had that issue on specially secured images.
Robert
sent from my mobile device
-------- Originale Nachricht --------
Von: Simon Avery
Gesendet: Tue Aug 04 15:51:18 GMT+02:00 2020
An: "uyuni-users@opensuse.org"
Betreff: [uyuni-users] Problem running remote commands with Centos 8
Hello, Spacewalk orphan looking for new home here.
New Leap 15.2 and Uyuni 2020.07 install.
On bootstrapping a Centos 8 client, I hit some snags initially, and needed to install salt-minion on the client, which in turn needed a new repo adding.
yum install https://repo.saltstack.com/py3/redhat/salt-py3-repo-latest.el8.noarch.rpm
yum install salt-minion
This installs salt-minion 3001-1.el8 plus dependencies.
This allowed me to bootstrap through the Uyuni web interface and add the client successfully using the salt method.
However, when running a remote command, such as "touch /tmp/i_exist.txt" (actual path doesn't matter), this fails with
stderr:
/bin/sh: /tmp/__salt.tmp.jir6xlhr.sh: Permission denied
Googling tells me this is a salt error rather than a Uyuni one, but as Uyuni set up salt-minion I'm hoping to gain a solution here.
Can anyone point me in the right direction please?
Thanks
--
To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org
To contact the owner, e-mail: uyuni-users+owner@opensuse.org
--
To unsubscribe, e-mail: uyuni-users+unsubscribe@opensuse.org
To contact the owner, e-mail: uyuni-users+owner@opensuse.org