How do I retain the PATH in the root account even when I switch to root using su?
Last night, I switched to root from my other login using the su command. I discovered that I could issue certain commands - hdparm, shutdown, etc. in this mode. Then, I found out that /sbin was not in the PATH. But, when I logged in to root, /sbin was there in the PATH. How do I make sure that /sbin is exported to the PATH even when I switch to root using su.