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
Asked by cjoshi
(1 rep)
Aug 13, 2021, 04:33 PM
Last activity: Aug 17, 2021, 12:01 PM
Last activity: Aug 17, 2021, 12:01 PM