Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2006 00:14:57 +0930
From:      Malcolm Kay <>
Cc:        jekillen <>
Subject:   Re: mail to root
Message-ID:  <>
In-Reply-To: <>
References:  <>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
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 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".


> 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

Want to link to this message? Use this URL: <>