From owner-freebsd-questions Sat Apr 1 9:47:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id EBBB737B5FC for ; Sat, 1 Apr 2000 09:47:31 -0800 (PST) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.9.3/8.9.3) id MAA28676; Sat, 1 Apr 2000 12:46:56 -0500 (EST) (envelope-from cjc) Date: Sat, 1 Apr 2000 12:46:56 -0500 From: "Crist J. Clark" To: Chris Byrnes Cc: questions@FreeBSD.ORG Subject: Re: symlinking /var/mail to /usr/mail Message-ID: <20000401124656.B28346@cc942873-a.ewndsr1.nj.home.com> Reply-To: cjclark@home.com References: <200004011308.HAA23895@shell.jeah.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200004011308.HAA23895@shell.jeah.net>; from chris@shell.jeah.net on Sat, Apr 01, 2000 at 07:08:23AM -0600 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Apr 01, 2000 at 07:08:23AM -0600, Chris Byrnes wrote: > I am running out of space on /var, so I'd like to remove /var/mail, > create /usr/mail, and create a symlink so /var/mail forwards to > /usr/mail. > > I know how to do that and stuff, but I'm not sure what permissions /usr/mail > should have and who should own it. > > Advice? Well, I think giving /usr/mail the same permissions and ownership as /var/mail would be a pretty safe way to go. In my case I would, # mkdir /usr/mail # chown root.mail /usr/mail # chmod 775 /usr/mail # kill `head -1 /var/run/sendmail.pid` # tar cf - -C /var/mail . | tar xf - -C /usr/mail # mv /var/mail /var/mail.old # just to be safe # ln -s usr/mail /var/mail # /usr/sbin/sendmail -bd -q30m And I think that would do it. Remove /var/mail.old when you verify everything got copied and is working fine. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message