Messages in this thread | | | Date | Fri, 28 Nov 2003 15:29:51 +0530 | From | Raj <> | Subject | Re: Strange behavior observed w.r.t 'su' command |
| |
One more observation:
This time i wrote two shell functions, one for the user and another for root. I placed them in the .bash_profile
for root z() { touch /tmp/createdbyroot }
for user z() { touch /tmp/createdbyuser }
I then reproduced the problem, and during the alternation of the prompts, when i was on the user prompt, i ran 'whoami' and it showed me as a normal user. Then i ran 'z'. I expected the filename in /tmp to be 'createdbyuser' but it is actually 'createdbyroot' !!!
/Raj
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |