SSH login – email notifications about new logins

For notifications about new SSH logins please create file /etc/profile.d/notify.sh (tested and used only in CentOS 6) # Create new file with content bellow vim /etc/profile.d/notify.sh #!/bin/sh IP=”$(echo $SSH_CONNECTION | cut -d ” ” -f 1)” LOGIN_TIME=$(date +”%d.%m.%Y %H:%M:%S”) LOGIN_USER=`whoami` HOSTNAME=`hostname` SUBJECT=”SSH Login Notification – $HOSTNAME/$LOGIN_USER” TO_EMAIL=”youremailadres@maildomain.com” if [ -z $IP ] ; then IP=”localhost” […]

We want Linux Users Parade

First of all, there are less than 5% of us, Linux users, and our human rights are brutally violated by the state and the majority of Windows users who violate all norms of open source civilization. In our jobs we are forced to talk about how we’re working on Windows, as we have installed Office […]

How to reset lost root password for MySQL

Here are simple manual about resetting forgotten root password on MySQL. This actions cannot be done without root access to computer/server, so you will need root password for this action. On this text we will reset password on Ubuntu 14.04 server. # Stop MySQL server. While it’s stopped all sites which are connected to dataase […]