how to change the root user's name on FreeBSD 6.1 running postfix

Atom Powers atom.powers at gmail.com
Sun Aug 20 05:58:24 UTC 2006


On 8/19/06, Jonathan Horne <freebsd at 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--


More information about the freebsd-questions mailing list