Hi,
Simply use
$su -
The "-" argument will make the .bash_profile (or .profile if .bash_profile
doesn't exist) to run and leave u in home directory of home. It is like login as
root.
U can also use
$su - <any_user>
etc...
DIPAK
-----------------------------------
Bilal Muddassir wrote:
> Umm see if .bashrc is executed in both the cases.
> If true, then make .bash_profile --> .bashrc
>
> ----- Original Message -----
> From: <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 30, 1999 8:09 PM
> Subject: [LI] su
>
> > hello all,
> > When we generally login through normal procedure .bash_profile
> > will be executed. But suppose, when I logged into my login from other
> > user's bash(I mean su - vivek and then password) .bash_profile will not be
> > executed. So can n1 tell me how to do it? Is there any such procedure?
> >
> > Thanx in advance.
> >
> > Cheers!
> >
> > --------------------------------------------------------------------------
> ----
> > vivek, ,-`-|____\---,
> > IIIT-HYDERABAD. `-(*)-----(*)'
> > [EMAIL PROTECTED] "My Hardware runs better without windows"
> > A problem is an opportunity in work clothes.
> > -Henry J. Kaiser
> > --------------------------------------------------------------------------
> ----
> >
> >
> > --------------------------------------------------------------------
> > The Linux India Mailing List Archives are now available. Please search
> > the archive at http://lists.linux-india.org/ before posting your question
> > to avoid repetition and save bandwidth.
> >
>
> --------------------------------------------------------------------
> The Linux India Mailing List Archives are now available. Please search
> the archive at http://lists.linux-india.org/ before posting your question
> to avoid repetition and save bandwidth.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
E-Mail: [EMAIL PROTECTED] or [EMAIL PROTECTED]
HomePage: http://www.geocities.com/SiliconValley/Vista/8498
R.Address: P-301, Sector 21, NOIDA-201301
O.Phone: (0118)510701/02
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
--------------------------------------------------------------------
The Linux India Mailing List Archives are now available. Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.