Galaxy S4 not rooting

view story

http://forum.xda-developers.com – Hey guys I'm having trouble rooting my phone. I had the phone rooted and tried to install a different recovery and it blocked me out of recovery mode saying this software is not authorized by att. So then I installed the stock firmware via odin and the root went away now when I go to root again the phone won't root i keep getting this error on terminal (error: device offline) - thats on mac when i connect to windows it keeps connecting and disconnecting. Anyone have any ideas? (HowTos)