Programming and Scripting :: User commands in root script
Is there a way to execute some commands as user in a script called by root?
For example, in a script that requires to be run as root due to using "modprobe", is there a way to use "mydsl-load" as user?
su dsl mydsl-load ....
Aaah - thanks (don't recall seeing that anywhere).
use man su?
Anyways, I think using that way implies -c (the way I'm used to using it)
original here.