Date: Mon, 17 Jul 2000 00:04:07 +0300 From: Giorgos Keramidas <keramida@ceid.upatras.gr> To: ganizani <ganizani@malawi.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Can't POP mail Message-ID: <20000717000407.B75586@hades.hell.gr> In-Reply-To: <000501bfee62$b9f04440$03000004@sysanalyst.galaxy>; from ganizani@malawi.net on Sat, Jul 15, 2000 at 03:43:50PM %2B0200 References: <000501bfee62$b9f04440$03000004@sysanalyst.galaxy>
next in thread | previous in thread | raw e-mail | index | archive | help
[ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000717000407.B75586>
