From owner-freebsd-questions@FreeBSD.ORG Sat Dec 15 17:57:47 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F63F16A418 for ; Sat, 15 Dec 2007 17:57:47 +0000 (UTC) (envelope-from elrap@web.de) Received: from fmmailgate01.web.de (fmmailgate01.web.de [217.72.192.221]) by mx1.freebsd.org (Postfix) with ESMTP id E32AC13C459 for ; Sat, 15 Dec 2007 17:57:46 +0000 (UTC) (envelope-from elrap@web.de) Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [172.20.5.216]) by fmmailgate01.web.de (Postfix) with ESMTP id ABA40BD102F9; Sat, 15 Dec 2007 18:57:45 +0100 (CET) Received: from [84.152.165.70] (helo=freebsdangel.de) by smtp08.web.de with asmtp (WEB.DE 4.108 #208) id 1J3bGj-0007Dr-00; Sat, 15 Dec 2007 18:57:45 +0100 Message-ID: <476415E2.80604@web.de> Date: Sat, 15 Dec 2007 18:58:58 +0100 From: Tino Engel User-Agent: Thunderbird 2.0.0.6 (X11/20071110) MIME-Version: 1.0 To: "V.I.Victor" References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: elrap@web.de X-Sender: elrap@web.de X-Provags-ID: V01U2FsdGVkX19lIfM/K5iFCi0PNEWFXN5C77FwEwnPBuqYYrXF 4qRQP3CO19ms6jvwQEbDwpyNwzXLffJMayV/YfF5jQX2LVG7l/ C2MJ9tMsI= Cc: freebsd-questions@freebsd.org Subject: Re: Changing "/var/mail" to a symlink X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 17:57:47 -0000 V.I.Victor schrieb: > Because of "/var" size considerations, I'd like to use a symlinked > "/usr" directory for email instead of "/var/mail". > > Based on today's research, I think the following will work. > > > With mail delivery off, I 'su' and: > > mkdir /usr/var.mail > cd /var > cp -p mail/* /usr/var.mail/ > mv mail mail.bak > ln -s /usr/var.mail mail > > Since 'ls -l /var' shows: > > drwxrwxrwt 2 root mail 512 Dec 14 14:24 mail > > I should then: > > cd /usr > chmod 1777 var.mail > chown root:mail var.mail > > No changes are made to the "/var/mail" symlink. > > Then, if everything works, I just delete "/usr/mail.bak". > > > Does this seem OK? > > > Sorry to bother everyone with what's probably a trivial question, but > I *really* want to avoid screwing-up. The machine is remote; accessed > via ssh. > > Thanks! > > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > > Sounds reasonable to me. I'd just check afterwards if the permissions are like you want them to be, i.e. as they have been before... And you might send one or another testmail to the an account on the system to see if everything works as before, before you delete the mail.mak directory... Rg, Tino