lkml.org 
[lkml]   [2003]   [Nov]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.051 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site