From owner-freebsd-questions@FreeBSD.ORG Sun Dec 16 14:28:27 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 519C016A41A for ; Sun, 16 Dec 2007 14:28:27 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from omr2.networksolutionsemail.com (omr2.networksolutionsemail.com [205.178.146.52]) by mx1.freebsd.org (Postfix) with ESMTP id E0A9813C447 for ; Sun, 16 Dec 2007 14:28:26 +0000 (UTC) (envelope-from idmc_vivr@intgdev.com) Received: from mail.networksolutionsemail.com (ns-omr2.mgt.netsol.com [10.49.6.65]) by omr2.networksolutionsemail.com (8.13.6/8.13.6) with SMTP id lBGESQbR013221 for ; Sun, 16 Dec 2007 09:28:26 -0500 Received: (qmail 20487 invoked by uid 78); 16 Dec 2007 14:28:26 -0000 Received: from unknown (HELO webmail10) (205.178.146.50) by ns-omr2.lb.hosting.dc2.netsol.com with SMTP; 16 Dec 2007 14:28:26 -0000 Received: from 69.40.192.15 (idmc_vivr@intgdev.com [69.40.192.15]) by webmail10 (Netsol 11.2.30) with WEBMAIL id 25197; Sun, 16 Dec 2007 14:28:26 +0000 From: "V.I.Victor" To: "Tino Engel" Importance: Normal Sensitivity: Normal Message-ID: X-Mailer: Network Solutions Webmail, Build 11.2.30 X-Originating-IP: [69.40.192.15] X-Forwarded-For: [(null)] Date: Sun, 16 Dec 2007 14:28:26 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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: Sun, 16 Dec 2007 14:28:27 -0000 >-----Original Message----- >From: Tino Engel [mailto:elrap@web.de] >Sent: Saturday, December 15, 2007 12:58 PM >To: 'V.I.Victor' >Cc: freebsd-questions@freebsd.org >Subject: Re: Changing "/var/mail" to a symlink > >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 Thanks for the reply! I was pretty sure that the symlinking was right, but was not sure how the permissions carried thru -- as you also mentioned. I probably should have asked differently... Also, a suggestion was made off-list that "moving" /var/mail was better-done via mounting a nullfs. I'm reading up on that now.