#!/bin/bash sudo su - some_other_uname # validate with whoami or id if desired # run your command in the background /usr/bin/yourcommand > /dev/null 2>&1 & # script exits... but your command lives on.... running as the desired user. # forever zorked