Posts

Showing posts from September, 2012

Smokeping: Password Protecting

In this post, we will be looking at how to password protect Smokeping. As you may know, Smokeping pages are usually not password protected and can be viewed by anyone by defauly. Limit the view to a limited number of users, either of the following ways are possible- Using the web server configuration file to set passwords Using htaccess to set passwords According to Apache, using .htaccess should be avoided whenever possible, as .htaccess may hamper the web server performance ( Source ). Apache recommends using the web server configuration files for setting up passwords. Here's how it's done. (I am using an Ubuntu Server) Phase 1: Creating the password file. mkdir /etc/apache2/passwd htpasswd -c /etc/apache2/passwd/passwords username The -c is used to create a new user. This parameter can be omitted to change the password of an existing user. Phase 2: Modifying Smokeping Directives vim /etc/apache2/conf.d/smokeping ### Modify the following directives as nec

Changing mySQL root password

Here, we assume that the root password of mySQL is known. This tutorial has nothing to do with resetting forgotten root password. If we already know the root password of a mySQL database, here's how it can be changed - mysqladmin -u root -pcurrentpassword password 'newpassword' keep in mind that there is no space after the -p parameter. Hope this helps. ^_^