[TUHS] Set-uid shell scripts

Noel Chiappa jnc at mercury.lcs.mit.edu
Mon Aug 5 01:58:54 AEST 2019


    > From: Alec Muffett

    > until someone realised that you could do:
    >  ln -s /bin/scriptname ./-i
    >  "-i" # assuming that "." is already in your path
    > ...and get a root shell.

I'm clearly not very awake this morning, because I don't understand how this
works. Can you break it down a little? Thanks!

       Noel



More information about the TUHS mailing list