LF_SU_EMAIL_ALERT = "1" not working

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
bulgin
Junior Member
Posts: 5
Joined: 05 May 2009, 22:36

LF_SU_EMAIL_ALERT = "1" not working

Post by bulgin »

I'm having an issue with:

LF_SU_EMAIL_ALERT = "1"

I usually login as a normal user via ssh on a non-standard port then su to root sometimes, but I only get the alert for the initial normal user login and not the switch to root. Is that normal behavoir?

I have this in csf.conf:
LF_SU_EMAIL_ALERT = "1"

SSHD_LOG = "/var/log/auth.log"
SU_LOG = "/var/log/auth.log"

ssh logins are reported but not su_log, even though I see the following in the auth.log:

May 7 14:33:41 mydomain su[13078]: Successful su for root by a_user_name
globalnethoster
Junior Member
Posts: 7
Joined: 07 May 2009, 15:50
Location: washington state
Contact:

SSH SU LOGIN - same here

Post by globalnethoster »

i am getting the alert for the SU with the SU template. but i am NOT getting the SSH login at all. EXCEPT! when i do get the SU alert, i then get 2 notices and both with the SU template. i am tshooting this right now but i've not been throo the csf code.
globalnethoster
Junior Member
Posts: 7
Joined: 07 May 2009, 15:50
Location: washington state
Contact:

re LF_SU_EMAIL_ALERT = "1" not working

Post by globalnethoster »

got a clue here
email was tripping up when 2+ comma del'd
look at csf.pl - line 1829 (domail sub) that an unclosed bracket '<' there?
i'm a php guy new to pl (i could kick myself) and dont know whether to remove that left bracket or add one at the end of 'hostname' (...hostname>")
anyway there is an errant formation in the 2nd email
and i'm not getting the ssh login.
bulgin
Junior Member
Posts: 5
Joined: 05 May 2009, 22:36

Post by bulgin »

I don't see that at line 1829 in my csf.pl
globalnethoster
Junior Member
Posts: 7
Joined: 07 May 2009, 15:50
Location: washington state
Contact:

re LF_SU_EMAIL_ALERT = "1" not working

Post by globalnethoster »

hmm... i removed the '<' in mine, going to run some tests this week, will get back.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

bulgin wrote:May 7 14:33:41 mydomain su[13078]: Successful su for root by a_user_name
It's picking them up because that line isn't matched by the regular expressions in regex.pm

What OS and version are you running?
lewstherin
Junior Member
Posts: 2
Joined: 04 Sep 2009, 00:40

Post by lewstherin »

I have the same issue with Debian 5 x64, my auth.log looks the same.
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

I'll add it to the dev list for Debian.
Post Reply