You can use the setuid bit to run a particular command as the owner of the executable:

# chown someuser command
# chmod u+s command
$ ./command
"command" will get run with "someuser" priviledges.