February 5, 2010

How to recover lost root password

Filed under: Uncategorized — admin @ 12:59 pm

Things happen. You loose password, forget passwords etc.. You can recover your root password if you have access to the server directly. Its slightly different for different distributions. So we will look at teh Debian distribution example.
The steps for reseting root password on Debian machine through single user
mode is shown below.

1. Reboot the server and enter GRUB screen (The screen which shows the
boot options)
2. Once the GRUB screen is displayed, use the arrow keys to select the
boot entry showing kernel entry.
3. Press the key “e” to edit the entry
4. At the end of the kernel line add the word “1″ or “single” (without the
double quotes)
5. After adding the entry press ESC key to go back to the grub screen
6. press the key “b” to boot this kernel in single user mode
7. You will be now logged in to the shell as root user
8. In the shell type: passwd root
9. It will prompt you for your new password and will ask you to confirm it.
10. Now root password has been reset, you can now reboot your server using
the command “reboot”

Now keep it so that you don’t make this a habit. Good luck with your root password.

July 29, 2009

Brief intro about, CPHulk | mod_userdir | open_basedir

Filed under: General Topics, Uncategorized — admin @ 11:32 pm

cPHulk

cPHulk is a brute force protection system developped by the cPanel team and is exclusive to cPanel / WHM control panels. It has been integrated with cPanel version 11. With cPHulk, you can set a threshold for authentication attempts on services like POP3, cPanel, WHM, FTP, etc. After a certain amount of attempts, the attacker will no longer be able to authenticate

Enabling cPHulk is pretty easy. Simply log into your WHM control panel as root. From the main menu on the left, click on Security Center from the Security section. When you’re done, simply click on the Enable button at the top.

Click on the cPHulk Brute Force Detection link at the top of the page. Now you may want to configure cPHulk before you enable it. The configuration parameters are pretty much self-explanatory. Basically you set the number of failed attempts before an IP or an account is blocked and you set how long you want it to be blocked.

cPanel 11 marks the debut for the much anticipated cPHulk Protection system. cPHulk protects your vital services by disabling authentication to those services after a brute force attack is detected.

(more…)

Powered by WordPress