Date: Sat, 15 Dec 2007 18:58:58 +0100 From: Tino Engel <elrap@web.de> To: "V.I.Victor" <idmc_vivr@intgdev.com> Cc: freebsd-questions@freebsd.org Subject: Re: Changing "/var/mail" to a symlink Message-ID: <476415E2.80604@web.de> In-Reply-To: <W612303012353031197661483@webmail16> References: <W612303012353031197661483@webmail16>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?476415E2.80604>