Running UNIX/Linux command as anyone
February 7, 2013 11:18 pm Leave your thoughtsSometimes you need to run a command in the terminal as another user in the system. I forgot the way to do this all the time, so here’s a little code snippets on how to do so. sudo su -s /bin/sh <insert user here> -c "CMD HERE"