From owner-freebsd-questions Sat Sep 22 23:34:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from home.com (c1737881-a.plano1.tx.home.com [65.10.46.29]) by hub.freebsd.org (Postfix) with ESMTP id 2006E37B408 for ; Sat, 22 Sep 2001 23:34:55 -0700 (PDT) Received: (from mcbrune@localhost) by home.com (8.11.6/8.11.4) id f8N6YkJ01639; Sun, 23 Sep 2001 01:34:46 -0500 (CDT) (envelope-from mcbrune) From: mcbrune Message-Id: <200109230634.f8N6YkJ01639@home.com> Subject: Re: mail command tries to read wrong user's mail In-Reply-To: To: "Gary W. Swearingen" Date: Sun, 23 Sep 2001 01:34:46 -0500 (CDT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL92 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG su - With the dash, su will read the profile of the user, in this case root. Corey > I log in as "johndoe", su to "root" and enter the basic "mail" command and > get this message: "No mail for johndoe". > > Command "id -p" gives (first two lines): > login johndoe > uid root > > Anyone know how I should fix this? > > P.S. For now, I'm using "mail -f /var/mail/root". > > Thanks. > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message