ELS - Easy Linux Security script

Thank you, rldev. Could you tell me what exactly isn't working in --vps?
 
Also, just FYI, in your script it says:
I already use APC, and I have Ioncube installed and working. So unless their is some problem I'm not aware of, this is not true.

Fixed in 2.0.5.8.
 
Root login alert

I've installed the root login alert.
But I can't edit it.
I need to change the email.

Is it possible to make it change the email, even when it says "is already installed"?

If not, how do i change it?
 
Do this:
Code:
# chattr -i /root/.bash_profile
# perl -pi -e 's/[B]OLD_EMAIL_ADDRESS[/B]/[B]NEW_EMAIL_ADDRESS[/B]/' /root/.bash_profile
# chattr +i /root/.bash_profile
 
Ive used ELS to make a wheeluser but after doing this my logins failed for the user i made and also for root :confused:

What to do???
 
It should work, maybe something got broken because of changes you've made earlier...
 
Maybe there are anyone interested in ELS testing on Debian? I've just wrote "beta" version for debian.
 
Last edited:
Just tried it today on a new CentOS server and it shows errors

# uname -a
Linux servername 2.6.9-42.0.10.ELsmp #1 SMP Tue Feb 27 10:11:19 EST 2007 i686 athlon i386 GNU/Linux

# ./els.sh
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $3, $7 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $3 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
awk: cmd. line:1: { print ${1}, $2, $5 }
awk: cmd. line:1: ^ syntax error
/bin/cat: /etc/debian_version: No such file or directory
/bin/cat: /etc/debian_version: No such file or directory
FAILED
Can not determine your Linux distribution.
To prevent complications, this script will stop now.
Please contact an experienced adminstrator to do this for you.
 
Thank you for the bug report. Fixed in 2.1.0.1.

Code:
# cd /usr/local/els
# ./updater.sh
 
Any issues with 2.1.0.2 ? :) Because about 30% of the script has been changed.
 
oot@vps [/usr/local/els]# ./els.sh --vps
./els.sh: line 1: { print $1 }: command not found
./els.sh: line 1: { print $2 }: command not found
expr: syntax error
./els.sh: line 1: { print $1, $2, $3, $7 }: command not found
./els.sh: line 1: { print $1, $2, $3, $7 }: command not found
./els.sh: line 1: { print $1, $3 }: command not found
./els.sh: line 1: { print $1, $3 }: command not found
./els.sh: line 1: { print $1, $2 }: command not found
./els.sh: line 1: { print $1, $2, $5 }: command not found
./els.sh: line 1: { print $1, $2, $5 }: command not found
./els.sh: line 1: { print $1 }: command not found

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

Several packages installed by yum may not be compatable or may cause
problems with DirectAdmin or cPanel. To help prevent complications, ELS can add special
packages to be skipped when running yum.
These packages can still be updated manually with yum.
Proceed? (y/n): y
Substitution replacement not terminated at -e line 1.
Done.
./els.sh: line 397: [: !=: unary operator expected
________________________________________________

root@vps [/usr/local/els]# ./updater.sh
./updater.sh: line 1: { print $1 }: command not found
./updater.sh: line 1: { print $2 }: command not found
expr: syntax error
ELS 2.1.0.6 is the latest release, there is no need to update.
 
rldev, do this:
Code:
# cd /usr/local/els
# perl -pi -e 's/2.1.0.6/2.1.0.5/' variables.sh
# ./updater.sh
 
root@vps [/usr/local/els]# ./updater.sh
./updater.sh: line 1: { print $1 }: command not found
./updater.sh: line 1: { print $2 }: command not found
expr: syntax error
Updating ELS 2.1.0.5 to 2.1.0.6...
Downloading ELS 2.1.0.6...
Done.
MD5 valid.
Extracting...
Done.

Easy Linux Security successfully updated to 2.1.0.6.
 
You got errors because of undefined variable, from now (the version you have) there should be no problems at all.
 
Back
Top