Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Aug 2006 22:58:23 -0700
From:      "Atom Powers" <atom.powers@gmail.com>
To:        "Jonathan Horne" <freebsd@dfwlp.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: how to change the root user's name on FreeBSD 6.1 running postfix
Message-ID:  <df9ac37c0608192258oc7a87e6rf0939531a9f0a2de@mail.gmail.com>
In-Reply-To: <200608192232.36564.freebsd@dfwlp.com>
References:  <0a9001c6c406$e113b1d0$6600a8c0@w2k2> <200608192232.36564.freebsd@dfwlp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/19/06, Jonathan Horne <freebsd@dfwlp.com> wrote:
> >
> > In FreeBSD 4.11, you can run 'chsh root'  and edit the name to what you
> > want.  However, on my FreeBSD 6.1 servers, I still receive email addressed
> > from 'root unix'.   I would like to be able to differentiate the root mail
> > according to server the mail came from  :-)
> >
>
> i do exactly that, by editing /etc/master.passwd and /etc/passwd.  substitute
> in the name you would like to appear, and then
> run 'pwd_mkdb /etc/master.passwd.
>

It's better to use `vipw`, vipw does some basic syntax checks on your
passwd file before it writes it, and updates the master.passwd
automatically. (It also reads the value of your "EDITOR" value, so you
don't have to know vi to use it.)

-- 
--
Perfection is just a word I use occasionally with mustard.
--Atom Powers--



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