From owner-freebsd-questions Wed Oct 4 08:25:00 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id IAA22274 for questions-outgoing; Wed, 4 Oct 1995 08:25:00 -0700 Received: from keystone.cmp.com (keystone.cmp.com [198.80.26.10]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id IAA22266 for ; Wed, 4 Oct 1995 08:24:55 -0700 Received: from smtpgate.cmp.com ([198.80.26.6]) by keystone.cmp.com with ESMTP (1.37.109.14/17.1) id AA232770124; Wed, 4 Oct 1995 11:22:04 -0400 Received: from Microsoft Mail (PU Serial #1151) by smtpgate.cmp.com (PostalUnion/SMTP(tm) v2.1.8 for Windows NT(tm)) id AA-1995Oct04.111400.1151.276216; Wed, 04 Oct 1995 11:25:32 -0400 From: splyaski@cmp.com (Plyaskin Sergey) To: kuku@gilberto.physik.rwth-aachen.de (Christoph Kukulies) Cc: freebsd-questions@freebsd.org (freebsd-questions) Message-Id: <1995Oct04.111400.1151.276216@smtpgate.cmp.com> X-Mailer: Microsoft Mail via PostalUnion/SMTP for Windows NT Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Organization: CMP Publications, Inc. Date: Wed, 04 Oct 1995 11:25:32 -0400 Subject: Re: path question Sender: owner-questions@freebsd.org Precedence: bulk ---------- From: Christoph Kukulies To: Plyaskin Sergey Cc: freebsd-questions Subject: Re: path question Date: Wednesday, October 04, 1995 3:54PM > Hi folks, > > I am running FreeBSD 2.1 July SNAP. > As is, I have to use the absolute path in order to run my applications, for > example: > ./usr/local/bin/httpd This is not an absolute path, this is a relative path. Send your .cshrc/.login and your passwd entry. Does this happen under 'root'? Something must be hosed on your side. > Without that dot, it does not run even though I have /usr/local/bin in my > path. If I add dot to my path, it works but I get the error message on > login: Exported path has relative components. I also realize that including > dot in the path can be considered as a security hole. Normally the 'root' user should not have . in his path. There should appear any dots at all in your path statement besides a sole . for the normal user. > Question: is there any way of fixing that? I want to be able to run things > without memorizing their locations. Thanks. > > splyaski@cmp.com > Serge Plyaskin > CMP Publications > > --Chris Christoph P. U. Kukulies kuku@gil.physik.rwth-aachen.de ________________________________________ Yes, this happens under root. my .login file: # tset -Q \?$TERM stty crt erase ^H umask 2 # my .cshrc file: # alias mail Mail set history=1000 set savehist=1000 set path=(/sbin /usr/sbin /bin /usr/bin /usr/local/bin) # directory stuff: cdpath/cd/back # set cdpath=(/sys/{i386,} /usr/src/{bin,sbin,usr.{bin,sbin},lib,libexec,share,contrib,e tc,games,gnu,include,}) alias cd 'set old=$cwd; chdir \!*' alias h history alias j jobs -l alias ll ls -lg alias ls ls -g -k alias back 'set back=$old; set old=$cwd; cd $back; unset back; dirs' alias z suspend alias x exit alias pd pushd alias pd2 pushd +2 alias pd3 pushd +3 alias pd4 pushd +4 alias tset 'set noglob histchars=""; eval `\tset -s \!*`; unset noglob histchars' if ($?prompt) then set prompt="`hostname -s`# " set filec endif setenv BLOCKSIZE K #