I'm not sure if this is the best advice, but if, as root, you add the following line to /etc/sudoers Code: user ALL = NOPASSWD: ALL you should be able to run anything as root by putting sudo in front of it. For instance, Code: sudo whoami should output "root" and not "user."
user ALL = NOPASSWD: ALL
sudo whoami