Monday, April 11, 2011

How to run a command/script as other users ?


> runuser -s /bin/bash - ttt -c /usr/bin/top

This is also the way how daemon use to call runuser in /etc/rc.d/init.d/functions


No comments: