Friday, December 30, 2011

How to Deleting mails from mail queue

* Just fire the following command  * :--
------------
rm -rf /var/spool/exim/input/

------------

Thursday, December 29, 2011

How to Modify LogWatch

<< Logwatch is a customizable log analysis system It parses through your system's logs for a given period of time and creates a report analyzing areas that you specify, in as much detail as you require. Logwatch is already installed on most CPanel servers. >>

---------------------
To modify LogWatch, SSH into server and login as root.

At command prompt type: pico -w /etc/log.d/conf/logwatch.conf 


Scroll down to

MailTo = root

and change to

Mailto = your@email.com

<Note >: Set the e-mail address to an offsite account incase you get hacked.


Now scroll down to 

Detail = Low

Change that to Medium, or High...

Detail = 5 or Detail = 10

Note: High will give you more detailed logs with all actions. 

Save and exit.


-----------------------------------

Sunday, December 18, 2011

Server e-mail everytime someone logs in as root

** < Just follow the steps given below >**--   :--

-----------------

To have the server e-mail you everytime someone logs in as root, SSH into server and login as root.
---------------------------------
At command prompt type: pico .bash_profile
---------------------------------
Scroll down to the end of the file and add the following line:
---------------------------------
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" your@email.com
---------------------------------
Save and exit
*-------*******------------******---*****-----------*******-------*

Wednesday, December 14, 2011

Disable Telnet steps

*-* Disable Telnet :-

To disable telnet, SSH into server and login as root.

At command prompt type: pico -w /etc/xinetd.d/telnet

change disable = no to disable = yes

Save and Exit

At command prompt type: /etc/init.d/xinetd restart



Saturday, December 3, 2011

what is db4 error

 Steps are as follows :-
********----------*********
rpm --rebuilddb

rpm --initdb

OR

Click "Rebuild RPM Database" in WHM manager under "Software".
 
********----------*********

Sunday, November 20, 2011

Installing port collection

How to Installing port collection steps are  given below :-

# sysinstall
-----------
Scroll down and select Configure, press Enter.
-----------
Scroll down and select Distributions, press Enter.
-----------
Scroll down to ports, press Space.
-----------
Scroll up to Exit, press Enter.
-----------
Select your desired installation media, such as CDROM, FTP, and so on.
-----------
Scroll up to Exit and press Enter.
-----------
Press X to exit sysinstall

*******************************************

Thursday, November 10, 2011

Steps to set reverse< Dns >

Steps are as follows :-

--------------------------------

1. > 

ssh to ns1.loudpacket.net OR ssh to 207.71.120.250 
Username: root 
Password : #k53mPog 

****************

2.>

cd /var/named/rev 

****************
3.>
     ls 

****************

4.>

 pico 148.43.67.in-addr.arpa 
(Edit the network you want to change such as 148.43.67.in-addr.arpa for 67.43.148.*) 
syntax is like this: 68 (last part of the IP) PTR mail.netdotsolutions.com.(Domain name) 
Do not forget to put .(dot) after the domain name 
Eg: So to set 67.43.159.16 = inets.com.br 
Add this line: 16 PTR inets.com.br. 

****************
5.>

  Save and quit,

**************** 

6.>
  
 rndc reload 

****************
7.>

 host 67.43.159.16 localhost

/////////////////////////////////////////////////////////////////////////