I have some RHEL7.9 where /tmp is configured with noxec where I'm trying to install the ncpa agent. I tried different version of ncpa3 and even tough they install successfully, the service fail to start with different permission error depending on the version but in 3.0 I finally saw an error clearly saying that it failed to write some temporary file on /tmp
I don't see on the configuration anywhere an option to define a different location for the temporary files, can this be configured anywhere or the only alternative is to do not set noexec into /tmp?
Run ncpa with noexec on /tmp
- jmichaelson
- Posts: 375
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Run ncpa with noexec on /tmp
You may have luck adding
to /usr/lib/systemd/system/ncpa.service in the [Service] section. then and . this will overlay /tmp for the ncpa process with a temporary mount for the life of the process, which will clean up when it terminates.
Code: Select all
PrivateTmp=trueCode: Select all
systemctl daemon-reloadCode: Select all
systemctl restart ncpaPlease let us know if you have any other questions or concerns.
-Jason
-Jason
Re: Run ncpa with noexec on /tmp
That was a good idea but unfortunately it does not fix the issue at it seems it still trying to write on tmp altough on this agent version 3.0.2 it just provides a random Permission denied error