Linux 'runas' equivalent
Solution 1:
$ sudo -u <username> <command>
That will run the specified command as the user specified. It's not an exact drop-in for Windows' RunAs function, though, as that incorporates Kerberos authentication as well as for tasks that connect to remote hosts.
Solution 2:
sudo or su