*BSD News Article 53412


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!pravda.aa.msen.com!spool.mu.edu!howland.reston.ans.net!blackbush.xlink.net!rz.uni-karlsruhe.de!news.uni-stuttgart.de!uni-regensburg.de!faui0n.informatik.uni-erlangen.de!uni-erlangen.de!news.tu-chemnitz.de!irz401!uriah.heep!not-for-mail
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Manual pages sometimes miss information....
Date: 24 Oct 1995 01:12:43 +0100
Organization: Private FreeBSD site, Dresden.
Lines: 37
Message-ID: <46hb1r$dq3@uriah.heep.sax.de>
References: <Pine.BSF.3.91.951022024358.1055A-100000@ntworker.gscorp.com> <Pine.BSF.3.91.951022033320.1233A-100000@ntworker.gscorp.com>
NNTP-Posting-Host: uriah.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Philipp Ott  <philipp@gscorp.com> wrote:
>
>Grummel, here's another small trap which differs from other Linux
>flavours: the csh prompt (from su) didn't tell me that I was still root. 
>Hmpf. 

You are free to put whatever you want into root's .cshrc file, and it
will be executed even for su(8).

My ~root/.cshrc ends up in:

...
if ($?prompt) then
        set prompt="`hostname -s ` # "
endif

set path = ( /sbin /usr/sbin /bin /usr/bin /usr/local/bin /usr/X11R6/bin )

Btw., having /usr/sbin in the path might even be useful for normal
users:



HIER(7)                      UNIX Reference Manual                     HIER(7)

NAME
     hier - layout of filesystems
...
     /usr/    contains the majority of user utilities and applications
...
              sbin/     system daemons & system utilities (executed by users)
                                                           ^^^^^^^^^^^^^^^^^
-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)