How to Get Linux Server Sends Email Alert on Root Login How to get Linux-Server sendet E-Mail-Benachrichtigung über die Root-Login

To improve the security of the server, especially web server which exposes to the Internet and possible worldwide hackers, it’s best to enable server to automatically send a notification email to predefined email address everytime someone logs in as root to the host. Zur Verbesserung der Sicherheit des Servers, insbesondere Web-Server, setzt auf das Internet weltweit und mögliche Hacker, it's best-Server zu aktivieren, um automatisch eine Benachrichtigung per E-Mail an vordefinierte E-Mail-Adresse jederzeit jemand meldet sich als root auf dem Host. To configure the automatic email alert notification to a default email address on each incident of root log on on the server, use the following guide. So konfigurieren Sie die automatische E-Mail-Benachrichtigung Benachrichtigung an eine Standard-E-Mail-Adresse auf jeder Vorfall von Root anmelden, auf dem Server, verwenden Sie die folgende Anleitung.

  1. Login to the server via SSH using as root ID. Login zum Server via SSH als root mit ID.
  2. Ensure that you’re at home directory of root. Stellen Sie sicher, dass Sie im Home-Verzeichnis des root. The open up the .bash_profile for editing using pico or vi by typing one of the following commands at command shell line: Die Öffnung der. Bash_profile für die Bearbeitung mit pico oder vi, indem Sie eine der folgenden Befehle am Shell-Befehl Zeile:

    pico .bash_profile Pico. bash_profile
    vi .bash_profile VI. bash_profile

  3. Scroll down to the end of the file and add the following line: Scrollen Sie zum Ende der Datei und fügen Sie die folgende Zeile:


    echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" user@example.com echo 'Alert - Root-Shell-Access auf: "` date ``, `| mail-s" Alert: Root-Zugriff ab, "| cut-d" ( "-f2 | cut-d") "-f1` "user @ example.com

    Replace user@email.com with the actual email account address that you want to the root access alert notification been sent to. Ersetzen Sie user@email.com mit der eigentlichen E-Mail-Konto-Adresse, die Sie wollen die Root-Zugang Ausschreibung Anmeldung zugesandt worden. Note that you can change the text contains in the email alert too. Beachten Sie, dass Sie können den Text in der E-Mail-Benachrichtigung. The text starting with first ALERT is written as email body, and you can add in other info such as host name or change the wordings. Der Text beginnt mit dem ersten Alarm wird als E-Mail-Text, und Sie können in anderen Informationen, wie zB die Host-Namen oder ändern Sie die Formulierungen. The second Alert is the email title which you can change to your own too. Die zweite Ausschreibung ist der Titel der E-Mail können Sie zu Ihrem eigenen.

Now logout and login again as root, you should receive an email alert at your inbox. Jetzt ausloggen und wieder einloggen als root, sollten Sie erhalten eine E-Mail-Benachrichtigung in Ihrem Posteingang angezeigt. The security trick should works on most popular flavor of Linux such as RedHat, CentOS, Ubuntu, FreeBSD and etc. Die Sicherheit sollte Trick funktioniert auf den meisten populären Variante des Linux-wie RedHat, CentOS, Ubuntu, FreeBSD und usw.

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. WICHTIG: Es handelt sich um eine Maschine der Seite übersetzt wird "as is" ohne Garantie. Machine translation may be difficult to understand. Maschinelle Übersetzung ist vielleicht schwierig zu verstehen. Please refer to Bitte wenden Sie sich an original English article Original Englisch Artikel whenever possible. wann immer dies möglich ist.

Share and contribute or get technical support and help at Aktie und einen Beitrag oder erhalten technische Unterstützung und Hilfe an My Digital Life Forums Meine digitalen Lebens Foren . Werden.



2 Responses to “How to Get Linux Server Sends Email Alert on Root Login” 2 Responses to "How to Get Linux-Server sendet E-Mail-Alert auf Root-Login"

  1. Linux - wysyłanie maila o logowaniu na konto roota « Barni.LOG Linux - wysyłanie Maila o logowaniu na konto roota «Barni.LOG
    August 12th, 2007 03:10 12. Aug 2007 03:10
    1

    [...] Linux - wysyłanie maila o logowaniu na konto roota Bardzo użyteczny skrypcik [...] [...] Linux - wysyłanie Maila o logowaniu na konto roota Bardzo użyteczny skrypcik [...]

  2. Jon
    May 3rd, 2008 05:43 3. Mai, 2008 05:43
    2

    ‘who -m’ makes the output much cleaner when using this on a system that has multiple users logged on… ',-M' macht die Ausgabe wesentlich sauberer, wenn Sie diese auf einem System mit mehreren Nutzern angemeldet…

    -m reports only hostname and user associated with stdin terminal - m Berichte nur Hostnamen und Anwender im Zusammenhang mit stdin Terminal

Leave a Reply Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> Sie können diese Tags: <a href= title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime = ""> <em> <i> <q Cite=""> <strike> <strong>

Subscribe without commenting Abonnieren ohne zu kommentieren


Custom Search

New Articles Neue Artikel

Incoming Search Terms for the Article Eingehender Suchbegriffe für den Artikel

linux turn off mail notification Linux deaktivieren Mail-Benachrichtigung - -- linux email alerts Linux E-Mail-Benachrichtigungen - -- change root email E-Mail-Adresse ändern root - -- linux change root email Linux-Root-E-Mail-Adresse ändern - -- linux mail root Linux-Root-Mail - -- linux change root email address Linux-Root ändern E-Mail-Adresse - -- linux root mail Linux-Root-Mail - -- mail alerts in linux Mail-Benachrichtigungen auf Linux - -- email when root logs on E-Mail, wenn root anmeldet - -- linux root login alert Linux-Root-Login-Benachrichtigung - -- turn off mail notification linux schalten Sie Linux-Mail-Benachrichtigung - -- linux root email address Linux-Root-E-Mail-Adresse - -- email alerts linux E-Mail-Benachrichtigungen Linux - -- linux server email security notifications Linux-Server E-Mail-Security-Benachrichtigungen - -- linux mail change from address Linux-Mail-Adresse ändern - -- email alert when linux server is login E-Mail-Benachrichtigung, wenn Linux-Server einloggen - -- Change root mail Change root Mail - -- linux root login mail Linux-Root-Login-Mail - -- linux send email login Linux senden E-Mail-Anmeldedaten - -- send email on login linux Senden von E-Mails auf Linux-Login - -- email for root E-Mail für root - -- linux send email on ssh login linux Senden von E-Mails über ssh login - -- linux notify on login Linux teilt auf Login - -- linux login notification Linux Login Anmeldung - -- linux email root logs Linux-Root-E-Mail-Protokolle - -- linux mail from address Linux-Mail-Adresse aus - -- linux system send alerts rss -news Linux-System senden Schlagzeilen rss-news - -- server email notifications Server E-Mail-Benachrichtigungen - -- linux server status mail Linux Mail Server-Status - -- linux root email as different user Linux-Root-E-Mail als anderer Benutzer - -- ssh alert linux SSH-Benachrichtigung Linux - -- where do we find mail for root + linux wo finden wir Mail für root + Linux - -- mail logins linux Linux-Mail-Logins - -- mail root linux Linux-Root-Mail - -- root mail linux Linux-Root-Mail - -- redhat linux directory file access email alert notification RedHat Linux-Verzeichnis-Datei Zugang E-Mail-Benachrichtigung Benachrichtigung - -- all alle - -- linux root alert Linux-Root-Benachrichtigung - -- linux some one is sending mail from my server who Linux ist ein paar Senden von E-Mails von meinem Server, - -- server to email logs linux E-Mail-Server auf Linux-Logs - -- ubuntu mail command line server change root email address ubuntu Mail Befehlszeile ändern Root-Server E-Mail-Adresse - -- set email alerts in linux E-Mail-Benachrichtigungen setzen auf Linux - -- email notification root freebsd E-Mail-Benachrichtigung root FreeBSD - -- Linux ubuntu ids alerte sms Ubuntu Linux-IDs alerte sms - -- any change in linux +email notification jede Veränderung in Linux + E-Mail-Benachrichtigung - -- change user from addresses linux Ändern Sie den Benutzer von Linux-Adressen - -- disable email notifications on linux server deaktivieren E-Mail-Benachrichtigungen auf Linux-Server - -- how to set root email ID wie Sie E-Mail-Root-ID - -- linux email on logins Linux E-Mails auf Logins - -- how to get the alert from mails from linux server wie man die Warnung aus E-Mails von Linux-Server - --