[TUHS] Set-uid shell scripts
Dave Horsfall
dave at horsfall.org
Thu Aug 8 07:40:52 AEST 2019
On Wed, 7 Aug 2019, Chet Ramey wrote:
>> Amusingly enough, the Mac works around this by symlinking /tmp to
>> private/tmp i.e. you get your own /tmp...
>
> /private/tmp is still word-writable with the sticky bit set. What you do
> get is a private $TMPDIR, e.g.,
>
> /var/folders/41/pgctqv8s3_301dzlcghzcbs800008y/T/
Aha! You have just unwittingly solved a mystery for me :-) I was
wondering where those files were coming from...
I'm not really a Mac freak; apart from the occasional port, I just use it
to SSH into my FreeBSD server, with multiple Terminals all over the
screen..
Thanks!
-- Dave
More information about the TUHS
mailing list