Errors 'a plenty

I believe all the errors below are related since they started at about the same time, that's why I thought it would be more useful to post them all in one post, as it might bring more insight in what is causing the problem.

Error Nr 1 (BASH commands not found)

Every time I start up a session in SSH (disabled root login) I get this:

PHP Code:
-bashidcommand not found
-bash: [: =: unary operator expected
-bashidcommand not found
-bashdircolorscommand not found
-bashidcommand not found
-bash: [: =: unary operator expected
-bashtrcommand not found
-bashtrcommand not found
-bashwhoamicommand not found
-bashmesgcommand not found
-bashdircolorscommand not found 
Error Nr 2 : Cpanel crons

(would this stop some cpanel crons from running? I got some emails like:
/bin/sh: line 1: /usr/bin/python2: Permission denied
/bin/sh: line 1: anaconda-ks.cfg: command not found

Here are some subject email headers:

PHP Code:
Here are some Subject Email Headers:

Cron <mailman@_______> /usr/bin/python2 -/usr/local/cpanel/3rdparty/mailman/cron/disabled

Cron 
<mailman@_______> /usr/bin/python2 -/usr/local/cpanel/3rdparty/mailman/cron/senddigests

Cron 
<mailman@_______> /usr/bin/python2 -/usr/local/cpanel/3rdparty/mailman/cron/checkdbs 
ls info:

PHP Code:
ls -l python2
lrwxr
-xr-x    1 root     root            6 Mar  3 03:16 python2 -> python
seems to be a link for

PHP Code:
ls -l python
-rwxr-xr-x    2 root     root       795584 Aug  8  2003 python
PHP Code:
-rwxr-xr-x 1 mailman mailman 8194 Mar 2 14:40 /usr/local/cpanel/3rdparty/mailman/cron/disabled
These permissions are correct, right?

Error Nr 3 : Awstats not working

PHP Code:
AwStats used to work finebut now I get this message:

Code:
Content-typetext/html
Internal Server Error

      Unable to open document 
(./awstats.plat cpaneld.pl line 1228
   main
::dodoc() called at cpaneld.pl line 516 
Error Nr 4 : Cpanel Disk Meter

In cPanel this is displayed:

PHP Code:
Disk usage :Serious problem while fetching quota data (quota): Permission denied (-1Megabytes 
Some changes I made recently

Does anyone know where this may come from? I made some changes to several things such as

PHP Code:
chmod -R 700 /etc/rc.d/init.d/* 
but I already tried chmod -R 777 /etc/rc.d/init.d/*, i still got the error.


PHP Code:
chmod 700 /bin/rpm 
PHP Code:
chattr /etc/passwd , /etc/shadow, /etc/group, /etc/gshadow, /etc/services 
PHP Code:
edited /etc/fstab : /home nosuid,nodev 
PHP Code:
5edited /etc/host.conf
order bind
,host
multi on
nospoof on 
PHP Code:
edited /etc/inetd.confcommented telnettalkntalk 
PHP Code:
edited /etc/profile TMOUT=3600 
PHP Code:
edited /etc/login.defs PASS_MIN_LEN changed to 8 
PHP Code:
disabled talk,ntalk in /etc/xinetd.d/talkntalk 
PHP Code:
10 cd /usr/bin/
chmod 000 perlcc byacc yacc bcc kgcc cc gcc i386*cc
chmod 000 
*c++ *g++
chmod 000 /usr/lib/bcc /usr/lib/bcc/bcc-cc1 
So, what did I do wrong and how can I fix it?

Thanks!

This is the contents of my .bashrc file for the user I log in with :

PHP Code:
Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -/etc/bashrc ]; then
        
. /etc/bashrc
fi 
Is it normal?

Here is /etc/bashrc if needed:

PHP Code:
Code:
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# For some unknown reason bash refuses to inherit
# PS1 in some circumstances that I can't figure out.
# Putting PS1 here ensures that it gets loaded every time.
alias which="type -path"
export EDITOR="pico"
export VISUAL="pico"
PS1="\u@\h [\w]# "

whoami=`whoami`
if [ -
"~/.dns" ]; then
        DNS
=`cat ~/.dns`
        
PS1="\u@$DNS [\w]# "
else
        if [ -
"/var/cpanel/users/$whoami]; then
                
eval `grep DNS= /var/cpanel/users/$whoami`

                if [ ! 
"$DNS"" ]; then
                        
echo -"$DNS> ~/.dns
                        PS1
="\u@$DNS [\w]# "
                
fi
        fi
fi

if [ ! -~/public_html/cgi-bin ]; then
        mkdir 
-~/public_html/cgi-bin
fi
if [ ! -~/public_ftp ]; then
        mkdir 
-~/public_ftp
fi

mesg y

alias wtf
="watch -n 1 w -hs"
alias wth="ps -uxa | more"
# Now for the dos users
alias dir="ls"
alias copy="cp"
alias del="rm"
alias deltree="rm -r"
alias move="mv"
alias ff="whereis"
alias attrib="chmod"
alias edit="pico"
alias chdir="cd"
alias mem="top"
alias search="grep"
alias pico="pico -w -z"


LS_OPTIONS='--color=tty -F -a -b -T 0';
export LS_OPTIONS;
alias ls='/bin/ls $LS_OPTIONS';
alias dir='/bin/ls $LS_OPTIONS --format=vertical';
alias vdir='/bin/ls $LS_OPTIONS --format=long';
alias d=dir;
alias v=vdir;
eval `
dircolors -b`


export JAVA_HOME=/usr/local/jdk
export PATH
=$JAVA_HOME/bin:$PATH
export CLASSPATH
=.:$JAVA_HOME/lib/classes.zip
export PATH
="$PATH:/usr/local/bin:/usr/X11R6/bin"

#cPanel Added Limit Protections -- BEGIN

#unlimit so we can run the whoami
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null

LIMITUSER
=$USER
if [ -"/usr/bin/whoami" ]; then
        LIMITUSER
=`/usr/bin/whoami`
fi
if [ "$LIMITUSER!= "root" ]; then
        ulimit 
-n 100 -u 20 -m 200000 -d 200000 -s 8192 -c 200000 -v 200000 2>/dev/null
else
        
ulimit -n 4096 -u 14335 -m unlimited -d unlimited -s 8192 -c 1000000 -v unlimited 2>/dev/null
fi
#cPanel Added Limit Protections -- END 
Thanks for reading my post to the end Errors 'a plenty

 

 

 

 

Top