From owner-freebsd-questions Sat Apr 1 19: 3:50 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.rdc1.tn.home.com (ha1.rdc1.tn.home.com [24.2.7.66]) by hub.freebsd.org (Postfix) with ESMTP id 90AAC37B8BB for ; Sat, 1 Apr 2000 19:03:44 -0800 (PST) (envelope-from williamsl@home.com) Received: from RELIABLE ([24.4.115.31]) by mail.rdc1.tn.home.com (InterMail v4.01.01.00 201-229-111) with ESMTP id <20000402030342.ZARC14777.mail.rdc1.tn.home.com@RELIABLE>; Sat, 1 Apr 2000 19:03:42 -0800 Date: Sat, 1 Apr 2000 22:03:47 -0500 From: Ben Williams X-Mailer: The Bat! (v1.39) Personal Organization: Williams Enterprises X-Priority: 3 (Normal) Message-ID: <3919.000401@home.com> To: "Crist J. Clark" Cc: FreeBSD Questions Subject: Re[2]: symlinking /var/mail to /usr/mail In-reply-To: <20000401124656.B28346@cc942873-a.ewndsr1.nj.home.com> References: <20000401124656.B28346@cc942873-a.ewndsr1.nj.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Quoting Crist J. Clark Saturday, April 01, 2000 CJC> 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? CJC> Well, I think giving /usr/mail the same permissions and ownership as CJC> /var/mail would be a pretty safe way to go. In my case I would, CJC> # mkdir /usr/mail CJC> # chown root.mail /usr/mail CJC> # chmod 775 /usr/mail CJC> # kill `head -1 /var/run/sendmail.pid` CJC> # tar cf - -C /var/mail . | tar xf - -C /usr/mail CJC> # mv /var/mail /var/mail.old # just to be safe CJC> # ln -s usr/mail /var/mail CJC> # /usr/sbin/sendmail -bd -q30m CJC> And I think that would do it. Remove /var/mail.old when you verify CJC> everything got copied and is working fine. Would it be better to change this somewhat: mkdir ch(own/mod) -- and now -stop- sendmail to avoid loosing data as tar runs -- --(will -HUP kill sendmail or cause it to re-read its config files?)-- mv ln -s /usr/mail /var/mail # watch that first / ;-) restart sendmail ? --Ben Williams mailto:received@email dot com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message