From owner-freebsd-questions@FreeBSD.ORG Tue Oct 3 14:45:04 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFAA816A415 for ; Tue, 3 Oct 2006 14:45:04 +0000 (UTC) (envelope-from malcolm.kay@internode.on.net) Received: from ipmail01.adl2.internode.on.net (ipmail01.adl2.internode.on.net [203.16.214.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCCE343D45 for ; Tue, 3 Oct 2006 14:45:03 +0000 (GMT) (envelope-from malcolm.kay@internode.on.net) Received: from ppp107-89.lns4.adl4.internode.on.net (HELO alpha.home) ([121.44.107.89]) by ipmail01.adl2.internode.on.net with ESMTP; 04 Oct 2006 00:14:58 +0930 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AR4FAMIUIkWBTg X-IronPort-AV: i="4.09,251,1157293800"; d="scan'208"; a="21294843:sNHT67907084" From: Malcolm Kay Organization: at home To: freebsd-questions@freebsd.org Date: Wed, 4 Oct 2006 00:14:57 +0930 User-Agent: KMail/1.8 References: <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net> In-Reply-To: <2d6e28fbc9d4d02b9c37e9f9c2ee62d7@prodigy.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200610040014.57473.malcolm.kay@internode.on.net> Cc: jekillen Subject: Re: mail to root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 14:45:04 -0000 On Wed, 20 Sep 2006 02:20 pm, jekillen wrote: > Hello again; > I have a question about how mail from the system is generated > for root. This question was prompted when I edited the Postfix > aliases file and ran newaliases, then did postfix reload, > assuming the mail system was running. I was informed that > Postfix was not running. So the question, how does mail > generated by the system get delivered to the root account? > Here is my motive: > I have a server that I want to run headless. I want to be able > to retrieve > mail to root from another machine via ssh login (on the same > private net work number/netmask 255.255.255.0). I cannot login > to the system as root over ssh. I don't know if I can read > root mail with su (as wheel group > member). I tried this but maybe I'm not using the appropriate > parameter. Or maybe there isn't any. There is! You can use : # mail -u root That is the approach I usually employ. Or as others have explained adopt root's profile by using "su -" in in place of "su". Malcolm > I don't know where to > look for an answer to this > question, other than this knowledgeable group.....Oh, man mail > maybe? Thanks in advance > Jeff K >