[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Debian's root path



On Tue, 2002-07-23 at 16:12, Mark Roach wrote:
> On Mon, 2002-07-22 at 17:23, Ron Johnson wrote:
> > On Mon, 2002-07-22 at 02:52, Osamu Aoki wrote:
> > > On Mon, Jul 22, 2002 at 02:49:58AM -0400, ThanhVu Nguyen wrote:
> > > > How did Debian setup so when I su (just su, not su -) to root ,
> > > > immediately I can access all the root's only program (but not when I
> > > > am just a normal user)?  I found this very convenient and want to do
> > > > it on my other Linux distrib.
> > > Set up login shell.  So for bash, ~/.bash_profile (or ~/.profile)
> > 
> > Can you please expound upon that rather terse reply?
> 
> basically, create a file named /root/.profile and in it put
> root-specific stuff such as
> 
> PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
> export PATH
> 
> for some reason I thought this happened automatically in Debian.

Here's a snippet from my Debian-created .bash_profile :

# set PATH so it includes user's private bin if it exists
#if [ -d ~/bin ] ; then
#    PATH=~/bin:"${PATH}"
#f

So, Debian does it, but comments it out...

-- 
+-----------------------------------------------------------------+
| Ron Johnson, Jr.        Home: ron.l.johnson@cox.net             |
| Jefferson, LA  USA                                              |
|                                                                 |
| "The greatest dangers to liberty lurk in insidious encroachment |
|  by men of zeal, well-meaning, but without understanding."      |
|   Justice Louis Brandeis, dissenting, Olmstead v US (1928)      |
+-----------------------------------------------------------------+


-- 
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org



Reply to: