[Dovecot] temporary disable account
Hello,
is there some way how to disable temporarily account or access to files. I need to backup with tar, but there is problem when tar is reading and some file changed (with --ignore-failed-read it continues but archive is not created and without --ignore-failed-read it fails). Some accounts are huge ;( Need something like qmail sticky bit or world writable directory - qmail is not delivering when one of above conditions hits.
Thank you for helping me.
Lampa
Lampa wrote:
Well, the "deny passwd file" would be a great solution about now, don't you think?
http://wiki.dovecot.org/Authentication/RestrictAccess
-- Curtis Maloney cmaloney@cardgate.net
On Tue, 2008-04-08 at 06:48 +0200, Lampa wrote:
If you just disable a user's access, you also need to kill any existing processes the user might have.
Really? I'm pretty sure I've successfully created tars where files have changed during it and without any special options. And if you're using maildir there shouldn't be any mailbox corruption since only metadata files change.
You could anyway lock mailboxes one at a time. With maildir creating dovecot-uidlist.lock file (but that also means creating the .lock safely so that if it exists, wait until it's gone).
participants (5)
-
Curtis Maloney
-
Lampa
-
Timo Sirainen
-
Tolga
-
Tom Hendrikx