I have small script which creates a tmp files using mkstemp. My script was created using root user , but if I logged in as someother user other than root then my scripts runs but msktemp fails and says permission denied
sh: /tmp/tmpFile-khB5hH: Permission denied
Same thing while doing in RHEL 7 works and no Permission denied error, what is changed in RHEL 8. looks like RHEL 8 is checking logged on user vs effective user.
I tested this up in RHEL 7.5 and RHEL 8.4.
If someone know change in RHEL 8 which leads to permission problems please suggest. Thanks