Step #1: Download Samsung USB Driver and Chainfire Rootfile for Galaxy S5 SM-G900F on your computer.
Step #2: Extract the Chainfire Rootfile for Galaxy S5 SM-G900F on your computer.
Step #3: Power Off your Galaxy S5 SM-G900F.
Step #4: Now, Boot into Download Mode by Pressing Volume Down + Home Key + Power Key.
Step #5: In Download Mode, You will see warning screen. Now Press Volume Up Key to continue.
Step #6: Open Odin3 (found in the chainfire rootfile), and connect your Galaxy S5 SM-G900F to the computer.
Step #7: Now, In Odin Click on the PDA Button and select CF-Auto-Root-klte-kltexx-smg900f.tar.md5 file.
Step #8: Now, Click on the Start Button to begin the root process.
Step #9: Once rooting procedure is completed you will be able to see the Green Success Message in Odin.
Step #10: Now, restart your Smartphone and check the SuperSU App. You can also verify it using the Root Checker.