Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

please advice how to stop the file creation under the directory -

     /var/spool/clientmqueue

the reason for that because the clientmqeueue folder have huge capacity and files created every day

I verify the folder capacity by du -sh , and folder nearly to 500M

please advice for all possibilities

share|improve this question

2 Answers 2

up vote 3 down vote accepted

You can fix this by fixing/removing/killing the application that writes to it. Workarounds like removing the directory or changing its mode just address the symptom, not the root cause.

share|improve this answer
    
please advice if I stop the service sendmail it will also to stop create files in this folder ? –  Eytan Dec 26 '13 at 21:25

You can change directory permissions by command

chattr +i /var/spool/clientmqeueue

By this , no files can be created in this dicretory. if you want to remove protection, just run

chattr -i /var/spool/clientmqeueue

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.