Is there anyway (through patch, or through configuration) to tell Bash not
to read the /etc/profile file when someone does an su -c ?
I, like probably many other people, use /etc/profile to launch a modified
bash shell (exec /bin/bash) for root when someone "su -"'s. But when
someone or some script does an "su - root -c /path/to/app" it ignores the
argument to -c and executes only /bin/bash.
Looking for a work around.
Thanks.