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
O

Oliver G

London, United Kingdom

I recently switched to AYK Solutions from Softlayer for my dedicated server requirements. I received...

Read full review
D

Diego

Even though I only have a shared hosting plan, their technical support team responded to my tech sup...

Read full review
N

No c

good service/support We have been with AYK for years. Good pricing/support. No complaints.

Read full review
A

AnyMood.co

TX, United States

I've been a client of AYK Solutions for about six months now. They have provided the best overall ex...

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft