![]() | |||||||||||
Messages in this thread |
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/
| ||||||||||
| Last update: 2005-03-22 13:58 [from the cache] ©2003-2008 | |||||||||||