[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ignore profile when su -c
From: |
JR Mayberry |
Subject: |
Ignore profile when su -c |
Date: |
Tue, 24 Jun 2003 12:24:25 -0400 (EDT) |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Ignore profile when su -c,
JR Mayberry <=