From owner-freebsd-questions Tue Sep 7 10:50:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from pop3-3.enteract.com (pop3-3.enteract.com [207.229.143.32]) by hub.freebsd.org (Postfix) with SMTP id 4636C15008 for ; Tue, 7 Sep 1999 10:50:47 -0700 (PDT) (envelope-from dscheidt@enteract.com) Received: (qmail 14924 invoked from network); 7 Sep 1999 17:49:16 -0000 Received: from shell-1.enteract.com (dscheidt@207.229.143.40) by pop3-3.enteract.com with SMTP; 7 Sep 1999 17:49:16 -0000 Date: Tue, 7 Sep 1999 12:49:16 -0500 (CDT) From: David Scheidt To: "Scott I. Remick" Cc: FreeBSD Questions Subject: Re: Alias includes In-Reply-To: <4.2.0.58.19990907125720.00bd7e60@mail.computeralt.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 7 Sep 1999, Scott I. Remick wrote: > Ok maybe someone can help me with this one. > > I'd like to make PART of the email aliases file viewable by all, while not > ALL of it. So I'd like to be able to split it up, so a sub-part (in the > same format) is "included" within the main /etc/aliases. The main file Use two files, and write a little script to cat them together, and then call newaliases. This should work, but I haven't tested it. #!/bin/sh # newnewaliases -- script to use two files to build /etc/aliases from. ALIASES=/etc/aliases PUB_ALIASES=/etc/aliases.pub PRIV_ALIASES=/etc/aliases.priv mv $ALIASES ${ALIASES}.old cat $PUB_ALIASES $PRIV_ALIASES > $ALIASES newaliases To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message