Rebuild permissions for mail data store

I've been running mail services from a copy of our mail database folder on a backup drive while I had a repair done on our server and I'm trying to get the data store back on the main drive. I've got all the data copied and pointed server admin to the folder but I'm getting permission errors with each connect attempt in the logs.

On the backup drive if I look at the permissions for the individual users, I can see them but on the main drive the "system" user is the only user with read/write. How can I rebuild the permissions without individually doing each folder? Maybe there's a way to copy the data and retain the permissions?

MacPro, Mac OS X (10.6.3)

Posted on Feb 24, 2011 5:29 AM

Reply
1 reply

Feb 26, 2011 12:00 PM in response to RiverEverywhere

If you copy it with "sudo cp -Rp /path/to/backup /path/to/live", it'll preserve ownership and permissions. But if you've been running from the existing copy in the meantime, recopying it from the backup will loose any new messages that arrived into the new copy. It's probably best (if annoying) to change ownership on each user's folder with "sudo chown -R username /path/to/user/folder"

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Rebuild permissions for mail data store

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.