|
ECS Home Automation and Security Archives |
learn more
| view messages for this
month | NetBloc® | terms of use | search
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects
Subject: From: Date: | Fwd: linux questions Mark Gilmore Wed, 16 Feb 2005 16:22:41 -0800 |
I just discovered su's "-p" (preserve environment) argument (which solves
my PATH problem).
But I'm still curious to know just where "su" is getting it's PATH, less
this argument.
>Date: Wed, 16 Feb 2005 16:03:05 -0800
>To: ecs@netbloc.com
>From: Mark Gilmore <mark1@markgilmore.net>
>Subject: linux questions
>
>When I enter "su" to enter superuser mode, my PATH reverts back to some
>basic setting.
>This happens no matter *where* I put my PATH statement:
> /etc/profile
> /etc/bash.bashrc.local
>What gives ?
>
>Also, is there a way to use the *current* command history when entering
>superuser mode ?
>Here's what I do a gazillian times a day:
> Enter some long (hard-to-type) command
> Get an err (must be super user)
> "su"
> Hit up arrow (so as to recall the long cmd) and get squat
> Curse at the fact that the command history has changed !!!!
> Retype the command whilst grumbling
>
>tanx
>
>Mark Gilmore
>http://OmnipotenceSoftware.com
Mark Gilmore
http://OmnipotenceSoftware.com
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.8 - Release Date: 2/14/2005
subject (prev) or (next) |
time (prev) or (next) |
author (prev) or (next) |
view more subjects