BLACK FRIDAY DEALS

Knowledge Base

Allows you to search a variety of questions and answers

Search

Search results

Linux Server Security

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.

See What Our Customers Say

Leave review
B

Bob

SA, Australia

AYK provide a very good value product, and always in a professional manner. I have used several host...

Read full review
D

Dario

Corrientes, Argentina

I have been a client for many years now. They always answer to my needs, and keep their prices affo...

Read full review
G

George S

AYKsolutions - best solution for small/high business I have several plans with them and i can sleep...

Read full review
A

Arlen A

WA, United States

Best customer service I've encountered anywhere. Great product at a great price.

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft