Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2000 20:06:18 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        FreeBSD questions <freebsd-questions@FreeBSD.ORG>
Subject:   Re: fortune stopped working on login
Message-ID:  <20001018200618.A391@poeza.iconnect.co.ke>
In-Reply-To: <v0313030db61344a8f97c@[209.150.35.196]>;  from "media@ct1.nai.net" on Wed, Oct 18, 2000 at 12:34:03PM -0400
References:  <v0313030db61344a8f97c@[209.150.35.196]>

next in thread | previous in thread | raw e-mail | index | archive | help
* media@ct1.nai.net <media@ct1.nai.net> [20001018 19:36]:
=>I am running 3.4R on a 133/586.  Neither root nor user runs fortune at
=>login, but they did until now.  I know this isn't a major problem, but I am
=>trying to learn as much as I can about my system.  I haven't edited my
=>.login files.  This is what it says in my .login for root:
=>
=>[-x /usr/games/fortune ] && /usr/games/fortune
=>
=>It says in my login as user:
=>
=>[-x /usr/games/fortune ] && /usr/games/fortune -s
=>
=>>From the root prompt:
=>
=># fortune
=>fortune: not found
=>
=>>From the user prompt, the command fortune works (ie. it generates a quote).
=>This seems true for all games, eg. hangman will run as user, but won't run
=>as root.  I've looked at dm.conf and read the man page for dm.  However, I
=>cannot figure out _how_ root would have less permissions (although I can
=>see _why_).
=>
=>Any ideas??
I would take a guess that you changed the shell initialization file that
you were having before, and gave yourself another ;-) thus changing the
set PATH = " "
Try, from root prompt
/usr/games/fortune -o

If it works then add /usr/games to your $PATH variable, i.e where it says
set path = ( /x/y /usr/games)
That should be in the .login or .cshrc or whatever ...

=>
=>
=>
=>
=>
=>
=>
=>To Unsubscribe: send mail to majordomo@FreeBSD.org
=>with "unsubscribe freebsd-questions" in the body of the message

-Wash

--
Odhiambo Washington Inter-Connect Ltd.,
wash@iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KENYA.

Press any key to continue or any other key to quit... 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001018200618.A391>