#!/bin/sh # executing a shell script given with paramete$ # by peterleinchen, based on MFaroTusino's idea if [ $(id -u) != 0 ]; then echo rootme | devel-su -c "$0 $*" exit $? fi # own shell code from here echo $(whoami) >> /home/user/.out_execAsRoot