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}'`" [email protected]

Save and exit.

See What Our Customers Say

Leave review
S

seoSpaceship.com

NC, United States

AYK Solutions offers unmatched top tier support. They have gone above and beyond time and time agai...

Read full review
O

Oliver

Great Service I was using a dedicated server with AYK for about 6 months untill i sold my website. T...

Read full review
D

D Smith

Dedicated Semi-Managed Server Review I've been using AYKSolutions for about 2 years now and their su...

Read full review
T

Treevs

WI, United States

Prompt support, on New Years Eve of all days. Fixed issue within 10 minutes of submitting.

Read full review
ARIN Cisco Supermicro cPanel Intel Microsoft