I think it’s just a common misconception on these forums that Kubiak spent years under Shanahan.
I thought the same until I looked something up about him on Wikipedia an few weeks ago and then realised not only was he only at SF for 1 year but Payton was the one that got rid of him in Denver.