How to Get Linux Server Sends Email Alert on 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. 서버의 보안을 향상시키기 위해, 특히 웹 서버를 인터넷에 노출과 가능한 전세계 해커, 그것을 설정하는 최고의 서버를 자동으로 알려주는 알림 메일을 보낼 때마다 이메일 주소를 미리 정의된 루트로 로그인할 누군가를 호스트합니다. 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. 를 구성하는 자동 이메일 알림 통지 각각의 사건을 기본 이메일 주소가 서버에있는 루트에 로그온하려면 다음과 같이 안내합니다.

  1. Login to the server via SSH using as root ID. 쉿를 사용하여 서버에 로그인하여 루트로 번호를 통해합니다.
  2. Ensure that you’re at home directory of root. 루트 디렉토리에 당신이 집에 있는지 확인합니다. The open up the .bash_profile for editing using pico or vi by typing one of the following commands at command shell line: 오픈을합니다. bash_profile을 편집하거나 바이 피코를 사용하여 다음과 같은 명령 중 하나를 입력하여 명령 셸 라인 :

    pico .bash_profile 피코합니다. bash_profile
    vi .bash_profile 6. bash_profile

  3. 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 | cut -d"(" -f2 | cut -d")" -f1`" user@example.com 에코 '알리미 - 대한 액세스 권한을 루트 셸을 :'`일``사람`| 메일 -의 "경고 : 루트 액세스에서`누구 | 컷 - 패"( "- f2 | 컷 - 패") "- f1`"사용자 @ example.com

    Replace user@email.com with the actual email account address that you want to the root access alert notification been sent to. user@email.com가 실제 이메일 계정으로 주소를 교체하려는 접근 알림 통지의 루트로 전송되었습니다. Note that you can change the text contains in the email alert too. 참고 사항을 이메일로 발송되는 문자를 변경할 수있습니다 경고도합니다. 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. 텍스트로 시작하는 첫 번째 경고가 서면으로 이메일 본문, 그리고 다른 정보와 같은 추가하실 수있습니다 호스트 이름 또는 문구로 변경합니다. The second Alert is the email title which you can change to your own too. 이메일 제목을 두 번째 경고가를 사용하여 자신의도 변경하실 수있습니다.

Now logout and login again as root, you should receive an email alert at your inbox. 이제 로그아웃하고 다시 로그인 루트로,받은 편지함에서 이메일 알림을 수신해야합니다. The security trick should works on most popular flavor of Linux such as RedHat, CentOS, Ubuntu, FreeBSD and etc. 이 보안 트릭은 대부분의 인기있는 맛을 리눅스와 같은 작품 레드햇, centos, 우분투, freebsd 등

IMPORTANT : This is a machine translated page which is provided "as is" without warranty. 중요 사항 : 이것은 기계 번역 페이지는 "있는 그대로"제공하지 않고 보증합니다. Machine translation may be difficult to understand. 기계 번역을 이해하기 어려울 수있습니다. Please refer to 를 참조하시기 바랍니다 original English article 기존 영어 자료 whenever possible. 언제 수있습니다.

Share and contribute or get technical support and help at 를 공유하고 기술 지원 및 도움을 공헌하지 않는다면 My Digital Life Forums 내 디지털 라이프 공개 토론 . 합니다.



2 Responses to “How to Get Linux Server Sends Email Alert on Root Login” 2 개의 응답을 "이메일 경고를 보내는 리눅스 서버를하는 방법 루트 로그인"

  1. Linux - wysyłanie maila o logowaniu na konto roota « Barni.LOG 리눅스 - logowaniu na 곤도 wysyłanie maila 오 roota«barni.log
    August 12th, 2007 03:10 2007년 8월 12일 03:10
    1

    [...] Linux - wysyłanie maila o logowaniu na konto roota Bardzo użyteczny skrypcik [...] [...] 리눅스 - roota 곤도 wysyłanie maila 오 logowaniu na bardzo użyteczny [...] skrypcik

  2. Jon
    May 3rd, 2008 05:43 2008년 5월 3일 05:43
    2

    ‘who -m’ makes the output much cleaner when using this on a system that has multiple users logged on… '사람 - 나의이의 출력이 많은 청소기를 사용할 때 시스템에 로그온되어 여러 명의 사용자가…

    -m reports only hostname and user associated with stdin terminal - m 리포트를 사용자와 연관된 호스트 이름과 표준 입력 전용 터미널

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> 이러한 태그를 사용할 수있습니다 : <a href="" title=""> <acronym title=""> <abbr title=""> <blockquote cite=""> <b> <cite> <code> <델 날짜 = ""> <em> <i> <strike> '<q cite="">

Subscribe without commenting 논평없이 구독 신청
이메일


Custom Search

New Articles 새로운 기사

Incoming Search Terms for the Article 이 문서에 대한 검색어를 수신

linux email alerts 리눅스 이메일 알림 - - linux turn off mail notification 리눅스 메일 알림 기능 해제 - - change root email 루트 이메일 변경 - - linux change root email 리눅스 변화 루트 전자 우편 - - linux mail root 리눅스 메일 루트 - - linux change root email address 리눅스 루트의 이메일 주소 변경 - - linux root mail 리눅스 루트 메일 - - mail alerts in linux 리눅스에서 메일 알림 - - email when root logs on 전자 우편 루트에 로그온할 때 - - linux root login alert 리눅스 루트 로그인 경보 - - turn off mail notification linux 리눅스 메일 알림 기능 해제 - - change root email address 루트의 이메일 주소 변경 - - linux root email address 리눅스 루트의 이메일 주소 - - linux mail from address 리눅스 메일 보낸 사람 주소는 - - email alerts linux 이메일 알림 리눅스 - - linux server email security notifications 리눅스 서버 전자 메일 보안 알림 - - linux mail change from address 리눅스 메일 주소 변경 - - email alert when linux server is login 리눅스 서버에 로그인하면 이메일 알림 - - Change root mail 루트 메일 변경 - - root mail linux 루트 메일 리눅스 - - linux email alert 리눅스 이메일 알림 - - linux root login mail 리눅스 루트 로그인 메일 - - linux send email login 리눅스 보내는 이메일 로그인 - - send email on login linux 리눅스에서 로그인 이메일 보내기 - - email for root 전자 우편을 뿌리 - - linux send email on ssh login 쉿 로그인을 리눅스 이메일 보내기 - - linux notify on login 리눅스 통지에 로그인 - - linux login notification 리눅스 로그인 알림 - - linux email root logs 리눅스 이메일 루트 로그 - - set root mail 루트 메일 설정 - - linux mail an root 리눅스를 우송하는 루트 - - linux system send alerts rss -news 리눅스 시스템을 보내는 경고 rss - 뉴스 - - server email notifications 서버의 이메일 알림 - - linux server status mail 리눅스 서버 상태 메일 - - linux root email as different user 리눅스 루트 이메일로 다른 사용자 - - ssh alert linux 쉿 경보 리눅스 - - where do we find mail for root + linux 어디로 메일을 발견 루트 + 리눅스 - - mail logins linux 메일 로그인을 리눅스 - - mail root linux 메일 루트 리눅스 - - redhat linux directory file access email alert notification 레드햇 리눅스 디렉토리 파일 액세스 이메일 알림 통지 - - linux mail to root 리눅스 메일을 뿌리 - - all 모두 - - linux root alert 리눅스 루트 경고 - - linux some one is sending mail from my server who 리눅스 일부 하나는 내 서버에서 메일을 보내는 사람 - - server to email logs linux 리눅스 서버 로그를 제공하는 이메일 서비스 - - mail alert linux 메일 알림 리눅스 - - linux email root 리눅스 이메일 루트 - - ubuntu mail command line server change root email address 커맨드 라인 우분투 메일 서버 루트의 이메일 주소 변경 - - set email alerts in linux 리눅스에서 이메일 알림을 설정 - - email notification root freebsd 이메일 알림 루트 freebsd - -