From owner-freebsd-questions Wed Oct 18 10: 5: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from siafu.iconnect.co.ke (upagraha.iconnect.co.ke [209.198.248.2]) by hub.freebsd.org (Postfix) with ESMTP id AA6E137B4C5 for ; Wed, 18 Oct 2000 10:04:55 -0700 (PDT) Received: from [212.22.163.2] (helo=poeza.iconnect.co.ke) by siafu.iconnect.co.ke with esmtp (Exim 2.12 #1) id 13lwcs-000Kvh-00 for freebsd-questions@freebsd.org; Wed, 18 Oct 2000 20:03:38 +0300 Received: from wash by poeza.iconnect.co.ke with local (Exim 3.16 #1) id 13lwfS-00006u-00 for freebsd-questions@FreeBSD.ORG; Wed, 18 Oct 2000 20:06:18 +0300 Date: Wed, 18 Oct 2000 20:06:18 +0300 From: Odhiambo Washington To: FreeBSD questions Subject: Re: fortune stopped working on login Message-ID: <20001018200618.A391@poeza.iconnect.co.ke> Mail-Followup-To: Odhiambo Washington , FreeBSD questions References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from "media@ct1.nai.net" on Wed, Oct 18, 2000 at 12:34:03PM -0400 X-Operating-System: FreeBSD poeza.iconnect.co.ke 3.5-STABLE FreeBSD 3.5-STABLE X-Mailer: Mutt http://www.mutt.org/ X-Location: Mombasa, KE, East Africa Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * 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