Hi.
The mktemp flag on sys-auth/pambase allows the per-user /tmp directory feature (for instance, user fred has TMP and TMPDIR set to /tmp/.private/fred).
Running eix-remote as root gives this error:
mktemp: failed to create directory via template ‘/tmp/.private/root/eix-remote.XXXXXXXX’: Permission denied
* cannot create temporary directory
I suspect this error is happening because eix-drop-permissions does not involve PAM hence does not reset TMP and TMPDIR.
Perhaps the ${TMPDIR:-/tmp} constructs in /usr/share/eix/eix-functions should be updated to first check if TMPDIR is read/writable.
Hi.
The
mktempflag onsys-auth/pambaseallows the per-user/tmpdirectory feature (for instance, userfredhasTMPandTMPDIRset to/tmp/.private/fred).Running
eix-remoteas root gives this error:I suspect this error is happening because
eix-drop-permissionsdoes not involve PAM hence does not resetTMPandTMPDIR.Perhaps the
${TMPDIR:-/tmp}constructs in/usr/share/eix/eix-functionsshould be updated to first check ifTMPDIRis read/writable.