On Thu, Jul 27, 2000 at 09:48:05PM -0400, Jake McHenry wrote:
> 
> it works for me. if you go into root's home directory, and look at the login
> profile, make sure that there is a . at the very end of your path statement,
> PATH=/etc:/bin:/sbin:.
> without that . there, it only looks at the directories in the path, not the
> current directory that you are in.

This is a very bad idea. Putting the current directory in root's path
is a significant sercurity error. Of course, if you're going to put it
in there then putting it at the end is much better than the beginning,
but I would avoid this entirely. 

If you want to run a command in the current directory just do:

  # ./command

I generally type the full path to most commands as root anyways, but
that's just me :)


> 
> On Fri, 28 Jul 2000, Ragnar Wiencke wrote:
> 
> --Hi there.
> --Would anyone of you guys please explain why I can't run for example 
> --'ifconfig' or 'ntsysv' when I use su in a telnet session? I allways get the 
> --'bash: ifconfig: command not found' message. I thought that su would give me 
> --all the root rights.
> --Looking forward to all your answers.
> --Ragnar W.
> --
> [EMAIL PROTECTED]
> --
> --________________________________________________________________________
> --Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
> --
> --
> ---- 
> --To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> --as the Subject.
> --
> --
> 
> Jake McHenry
> [EMAIL PROTECTED]
> 
> 
> -- 
> To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
> as the Subject.

-- 
Steve Feehan                         Phone: 785-532-6350x44 
System Administrator                 Fax:   785-532-7353
Computing and Information Science    ICQ:   9751775
Kansas State University              http://www.cis.ksu.edu/~steve/


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to