ELS - Easy Linux Security script

root@vps [/usr/local/els]# ./els.sh --vps

Admin (your) E-Mail Address (this should NOT be on this server):
[email protected]
You entered: [email protected]
Ensure this is correct.
Proceed? (y/n): y
Using [email protected].

yum configuration already modified by ELS.


glibc 2.3 or greater is installed. I will disable cPanel's mysqlup
script and "manually" update MySQL using the RPMs built for glibc 2.3
This is the recommended method when glibc 2.3 or greater is available.

Installed version: [ 4.1.21-0 ]
Latest available version: [ 4.1.22-0 ]
This may take several minutes depending on your connection. Please be patient.
Downloading MySQL-server..
Download failed. Aborting.
 
rldev, thank you for the report. I've just uploaded needed packages.

P.S. this is only cPanel specific.
 
Hung after APC ?

I just downloaded and ran the script for the first time on RHEL4. I have replied yes to each step. After the APC install, it appears to be hung (no command prompt, no activity). Here are the last lines displayed.

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).


/usr/local/lib/php.ini backed up as /usr/local/els/bakfiles/php.ini-apc-install.bak.

Do I need to wait (its been 15 minutes), kill, restart or reboot?
 
els --update results

Here are the results after I rebooted then ran els --update

su -
Password:
awk: cmd. line:1: { print ${1} }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1} }
awk: cmd. line:1: ^ syntax error
[root@psweb01 ~]# els --update
PHP Warning: Unknown(): Unable to load dynamic library './apc/apc.so' - ./apc/apc.so: cannot open shared object file: No such file or directory in Unknown on line 0
Updating ELS 2.1.0.6 to 2.1.0.8...
Downloading ELS 2.1.0.8...
Done.
MD5 valid.
Extracting...
Done.

Easy Linux Security successfully updated to 2.1.0.8.

Is there something I should check to validate apc is running correctly?
 
Last edited:
Edit you /usr/local/lib/php.ini and set extension_dir to /usr/local/lib/php.
 
About the results - it's okay, you won't get the errors next time.
 
I had the following error on my latest RH install:

/usr/local/bin/php: error while loading shared libraries: libmysqlclient.so.12: cannot open shared object file: No such file or directory
 
It is installed.

root@vps [/usr/local/lib]# locate libmysqlclient.so
/usr/lib/libmysqlclient.so.14
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient.so.14.0.0
/usr/lib/libmysqlclient.so.6
/usr/local/cpanel/lib/libmysqlclient.so.14

Maybe I have to move something?
 
Code:
# ln -s /usr/lib/libmysqlclient.so /usr/lib/libmysqlclient.so.12
 
root@vps [/usr/local/els]# ./updater.sh
ELS 2.1.0.8 is the latest release, there is no need to update.
root@vps [/usr/local/els]# ./els.sh --bfd

ELS can now install BFD.
Proceed? (y/n): y
Downloading BFD...
Download Successful!
MD5 matches.
Extracting...
Extraction Successful!
Installing...
/usr/local/bfd/bfd: line 2: BFD: command not found
/usr/local/bfd/bfd: /usr/local/bfd/conf.bfd: line 4: syntax error near unexpected token `('
/usr/local/bfd/bfd: /usr/local/bfd/conf.bfd: line 4: `EMAIL_USR=""# Copyright (C) 1999-2004, R-fx Networks <[email protected]>'
BFD version 0.9 <[email protected]>
Copyright (C) 1999-2004, R-fx Networks <[email protected]>
Copyright (C) 2004, Ryan MacDonald <[email protected]>
This program may be freely redistributed under the terms of the GNU GPL

Apr 2 09:46:56 vps BFD(20134): could not locate $TLOGP, aborting.
/usr/local/bfd/bfd: line 50: $LOG: ambiguous redirect
BFD Install Completed Successfully!
 
Something is wrong in /usr/local/bfd/bfd, check that file, you should take a look at "EMAIL_USR" variable.
 
I have installed BFD on several servers the last few days, why would this suddenly be a problem?

if [ "$ALERT_USR" == "1" ]; then
APVAL=`cat $INSPATH/tmp/attack.pool | grep "$ATT_HOST"`
if [ "$APVAL" == "" ]; then
. $ALERTF | mail -s "$SUBJ_USR" "$EMAIL_USR"

It seems fine to me. But I am no scripting guru.
 
This is okay, how about /usr/local/bfd/conf.bfd? (look for EMAIL_USR too)
 
The conf was all messed up. It had "$EMAIL_USR" at the beginning of every line.
 
The problem is here:
Code:
            perl -pi -e 's/${GREPPED}/EMAIL_USR=\"${ADMINEMAIL}\"/' /usr/local/bfd/conf.bfd

I'm going to fix it.
 
.bash_profile error

I am still getting a syntax error in the awk for .bash_profile where it emails me when someone logs in as root. I believe we have an extra set of {}. When I try to edit .bash_profile, it says permissions denied. When I try to chmod as root, it won't let me which I am sure is a great idea and very secure, but I want to fix the error.

What would you suggest?
 
Back
Top