mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Raj <raju@mailandnews.com>
To: linux-kernel@vger.kernel.org
Subject: Re: Strange behavior observed w.r.t 'su' command
Date: Fri, 28 Nov 2003 15:29:51 +0530	[thread overview]
Message-ID: <3FC71C97.8030104@mailandnews.com> (raw)
In-Reply-To: <20031128093929.13486.qmail@web40909.mail.yahoo.com>

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


  parent reply	other threads:[~2003-11-28  9:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-28  9:39 Bradley Chapman
2003-11-28  9:54 ` Måns Rullgård
2003-11-28  9:59 ` Raj [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-11-28  8:30 Raj
2003-11-28  9:15 ` Måns Rullgård
2003-11-28 10:57   ` Tim Cambrant
2003-11-28 10:54     ` Andre Tomt
2003-11-28 10:33 ` Andreas Schwab
2003-11-28 10:47   ` Måns Rullgård
2003-11-28 10:53     ` Andreas Schwab
2003-11-28 11:11       ` Måns Rullgård
2003-11-28 11:56         ` Andreas Schwab
2003-11-28 11:22       ` Raj
2003-11-28 11:52         ` Andreas Schwab

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FC71C97.8030104@mailandnews.com \
    --to=raju@mailandnews.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome