How to Ignore LFD Email Alert for Certain Users in Linux

You will get LFD alerts messages often because you have installed CSF on your server and LFD will notify to you every time when the user or process take more time or memory which is assigned in your CSF configuration.

But sometimes if you want to disable this kind of alert for specific users.Yes, it is possible!

We have already discussed how to disable the Lfd excessive resource usage alert on a server in one of our previous article. Please see the article for more details.

In this Post, we are going to disable alert completely for a specific user . This can be easily accomplished by adding the user name in “csf.uidignore” file.

Follow the steps below:

Step 1 : Log into server as root user.

Step 2 : Next, you need to findout the UID (User ID) of that user.

We can check the UID information from /etc/passwd file or from the CLI by using the command “id.”

grep -i username /etc/passwd

grep -i cppl /etc/passwd

cppl:x:87:87:cppl:/:/sbin/nologin

id -u cppl
87

Step 3 : Open the CSF conf file “/etc/csf/csf.uidignore” with your favorite text editor and add the UID in that file.

nano /etc/csf/csf.uidignore
87

Step 4 : Restart CSF and LFD.

/etc/init.d/lfd restart
Stopping lfd: [ OK ]

That’s all you have to do,You also like to know about Basic SSH Commands For CSF To Secure Your Server, Please check and give your opinion below if you experience any issues or to discuss your ideas and experiences.

Leave a Reply

Register to Get FREE Offers

Why Pay for Software when you can GET it for FREE

JOIN US TONIGHT!