Incoming Millwall boss Gary Rowett watched his new side twice come from behind thanks to Tom Bradshaw's brace to earn a 2-2 draw at home to Cardiff and move five points clear of the Sky Bet Championship drop zone.
Danny Ward needed just 12 minutes to put the visitors ahead, but Bradshaw would strike either side of Junior Hoilett's stunning effort to share the spoils.
Rowett was appointed manager on Monday and will take over for Saturday's match, at home to former club Stoke, while caretaker Adam Barrett ends his spell with one win, one draw and one defeat from three games after Neil Harris' departure.
Neil Warnock's men remain winless on the road this season and sit five points from the play-offs in 13th.
The hosts started well, Matt Smith flicking a header just wide from Mahlon Romeo's cross.
The Bluebirds drew first blood, Hoilett swinging in a cross from the left and Ward nodding home from close range through the keeper's legs after 11 minutes.
Cardiff looked to capitalise on their early advantage, with Lee Tomlin and then Ward forcing low saves from Bartosz Bialkowski with shots from outside the area.
Jake Cooper wasted a good chance, directing a tame header straight at Neil Etheridge from a corner, before Matt Smith sent his own effort narrowly over but was penalised for a foul
Rowett was given reason to smile when Bradshaw popped up on the right of the box and fired home a deflected shot to level shortly before half time.
The second half started in fiery fashion, with Cardiff carving out several half-chances, Tomlin and Ward firing over after encouraging build-up play.
The Bluebirds made their dominance count when Hoilett and Tomlin combined well and the Canadian winger curled home a brilliant effort.
Tempers rose as Joe Bennett earned a yellow card for illegally halting Romeo on the breakaway, one of several fouls that disrupted the game.
With 20 minutes left a superb Bialkowski stop from Aden Flint kept the Lions in the game.
Millwall were rewarded for a rare foray forward as Tom Bradshaw latched onto the ball in the box, jinked past one defender and lashed another equalizer high into the net.
The hitman could have had a hat-trick minutes later, but shot straight at Etheridge from a tight angle.
Suddenly Millwall were asking the questions as Etheridge had to push away a venomous Jed Wallace shot in the closing stages but both sides stood firm to give Rowett plenty to think about as he steps into the manager's office.