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

Re: Debian's root path



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.


HTH

-Mark

Attachment: signature.asc
Description: This is a digitally signed message part


Reply to: