From owner-freebsd-questions Sun Jul 16 22: 5:25 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail.hellasnet.gr (mail.hellasnet.gr [212.54.192.3]) by hub.freebsd.org (Postfix) with ESMTP id 5F5D337BA5C for ; Sun, 16 Jul 2000 22:05:21 -0700 (PDT) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (ppp1.patr.hellasnet.gr [212.54.197.16]) by mail.hellasnet.gr (8.9.1/8.9.1) with ESMTP id IAA18181; Mon, 17 Jul 2000 08:05:41 +0200 (GMT) Received: (from charon@localhost) by hades.hell.gr (8.10.2/8.10.2) id e6GL48675811; Mon, 17 Jul 2000 00:04:08 +0300 (EEST) Date: Mon, 17 Jul 2000 00:04:07 +0300 From: Giorgos Keramidas To: ganizani Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't POP mail Message-ID: <20000717000407.B75586@hades.hell.gr> References: <000501bfee62$b9f04440$03000004@sysanalyst.galaxy> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <000501bfee62$b9f04440$03000004@sysanalyst.galaxy>; from ganizani@malawi.net on Sat, Jul 15, 2000 at 03:43:50PM +0200 X-PGP-Fingerprint: 3A 75 52 EB F1 58 56 0D - C5 B8 21 B6 1B 5E 4A C2 X-URL: http://students.ceid.upatras.gr/~keramida/index.html Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ message reformatted to wrap nicely at 72 characters per line ] On Sat, Jul 15, 2000 at 03:43:50PM +0200, ganizani wrote: > I might be asking too much but I have a problem here. Most of the > mailboxes have wrong ownership. I am running FreeBSD-4.0. I believe > that this is because when the users were transfered from the old > system we were three of us adding them to the new system from > different terminals and some of the info was not entered correctly. > > Could someone provide a script that could rectify this problem for me. > i.e. set the ownership of each /var/mail/user to user. To fix the permissions of the directory, and each separate file, you could use something like: #!/bin/sh cd /var/mail chown root.mail . chmod 775 . for fname in * ; do chown "${fname}".mail "${fname}" chmod 600 "${fname}" done -- "The sun is the same in a relative way, but you're older. Shorter of breath, and one day closer to death." > Pink Floyd, TIME (Dark Side of the Moon) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message