Re: [Dovecot] temporary disable account

2008-04-08 Thread Lampa
Hello,

MTA is qmail, and there is no problem with it (qmail is stopped for
current user - sticky bit set). Problem is dovecot - and is not
possible to stop dovecot (due to clients)

2008/4/8, Tolga [EMAIL PROTECTED]:


  Lampa wrote:

  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.
 
 
  Stop your MTA.

  Thank you for helping me.
 
 

  --
  Stay with *nix :)




-- 
Lampa


Re: [Dovecot] temporary disable account

2008-04-08 Thread Tolga



Lampa wrote:

Hello,

MTA is qmail, and there is no problem with it (qmail is stopped for
current user - sticky bit set). Problem is dovecot - and is not
possible to stop dovecot (due to clients)
  

Then copy mailboxes to somewhere else and make backup there.

2008/4/8, Tolga [EMAIL PROTECTED]:
  

 Lampa wrote:



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.


  

 Stop your MTA.



Thank you for helping me.


  

 --
 Stay with *nix :)






  


--
Stay with *nix :)



Re: [Dovecot] temporary disable account

2008-04-08 Thread Lampa
Hello,

that's not good solution ;( some mailboxes have 1 - 3GB. So need
another solution

Or it can be feature request: disable access when user homedir is sticky ?

2008/4/8, Tolga [EMAIL PROTECTED]:


  Lampa wrote:

  Hello,
 
  MTA is qmail, and there is no problem with it (qmail is stopped for
  current user - sticky bit set). Problem is dovecot - and is not
  possible to stop dovecot (due to clients)
 
 
  Then copy mailboxes to somewhere else and make backup there.

  2008/4/8, Tolga [EMAIL PROTECTED]:
 
 
Lampa wrote:
  
  
  
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.
   
   
   
   
Stop your MTA.
  
  
  
Thank you for helping me.
   
   
   
   
--
Stay with *nix :)
  
  
  
  
 
 
 
 

  --
  Stay with *nix :)




-- 
Lampa


Re: [Dovecot] temporary disable account

2008-04-08 Thread Curtis Maloney

Lampa wrote:

Hello,

MTA is qmail, and there is no problem with it (qmail is stopped for
current user - sticky bit set). Problem is dovecot - and is not
possible to stop dovecot (due to clients)


Well, the deny passwd file would be a great solution about now, don't you 
think?


http://wiki.dovecot.org/Authentication/RestrictAccess

--
Curtis Maloney
[EMAIL PROTECTED]



Re: [Dovecot] temporary disable account

2008-04-08 Thread Tom Hendrikx


Maybe the problem is not with Dovecot, but with your backup strategy?
The same problem exists with files in regular homedirs. You could look
into generic solutions for this problem f.i. LVM snapshots.

Regards,
Tom

Lampa schreef:

Hello,

that's not good solution ;( some mailboxes have 1 - 3GB. So need
another solution

Or it can be feature request: disable access when user homedir is sticky ?

2008/4/8, Tolga [EMAIL PROTECTED]:


 Lampa wrote:


Hello,

MTA is qmail, and there is no problem with it (qmail is stopped for
current user - sticky bit set). Problem is dovecot - and is not
possible to stop dovecot (due to clients)



 Then copy mailboxes to somewhere else and make backup there.


2008/4/8, Tolga [EMAIL PROTECTED]:



 Lampa wrote:




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.





 Stop your MTA.




Thank you for helping me.





 --
 Stay with *nix :)









 --
 Stay with *nix :)










Re: [Dovecot] temporary disable account

2008-04-08 Thread Timo Sirainen
On Tue, 2008-04-08 at 06:48 +0200, Lampa wrote:
 Hello,
 
 is there some way how to disable temporarily account or access to
 files. 

If you just disable a user's access, you also need to kill any existing
processes the user might have.

 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).

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).


signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] temporary disable account

2008-04-08 Thread Lampa
Hello,

seem to be problem of vpopmail. There is only solution to set sticky
bit on whole domain but no for user (maybe it's possible but i don't
know how).


2008/4/8, Timo Sirainen [EMAIL PROTECTED]:
 On Tue, 2008-04-08 at 06:48 +0200, Lampa wrote:
   Hello,
  
   is there some way how to disable temporarily account or access to
   files.


 If you just disable a user's access, you also need to kill any existing
  processes the user might have.


   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).


 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).




-- 
Lampa


Re: [Dovecot] temporary disable account

2008-04-07 Thread Tolga



Lampa wrote:

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.
  

Stop your MTA.

Thank you for helping me.
  


--
Stay with *nix :)