It sounds like you switched users from another user to root without using the -. If you do su root without the -, then you do not inheret the root users environment. So when you try to run commands that root normally has access to, they won't work as you saw.
If you are going to switch users to root, always use su -, or su - root. Forgetting the - can cause you a lot of headaches.