sudo -u <username><command> will run a program as other user
<username>
<command>
su - <username> -c "<command>"
- will load the users environment
su - <username> switches console to the user