Re: how to change the root user's name on FreeBSD 6.1 running postfix
> > Hi, > > I am running postfix on FreeBSD 4.11 and 6.1 servers. > > 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 :-) > > Any idea's? Use 'vipw' and edit that field in the root entry. Don't change the id name or the UID fields, just the part of the entry that says 'root unix' or whatever to what you want for each machine. The vipw utility works just like 'vi' only it takes care of correct file locking and updating master.passwd and the passwd database for you when you exit with a :wq jerry > > Regards, > > Paul Hamilton > Busselton, 6280 > Australia > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to change the root user's name on FreeBSD 6.1 running postfix
Paul Hamilton wrote: > Hi, > > I am running postfix on FreeBSD 4.11 and 6.1 servers. > > 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 :-) > > Any idea's? Hi, You're after: chpass(1) Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: [EMAIL PROTECTED] Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to change the root user's name on FreeBSD 6.1 running postfix
On 8/19/06, Jonathan Horne <[EMAIL PROTECTED]> 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-- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: how to change the root user's name on FreeBSD 6.1 running postfix
On Saturday 19 August 2006 22:15, Paul Hamilton wrote: > Hi, > > I am running postfix on FreeBSD 4.11 and 6.1 servers. > > 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 :-) > > Any idea's? > > > > Regards, > > Paul Hamilton > Busselton, 6280 > Australia > 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. cheers, jonathan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"