نمایش نتایج: از شماره 1 تا 1 , از مجموع 1

موضوع: فرستادن ایمیل اخطار برای اتصال به root

Hybrid View

پست قبلی پست قبلی   پست بعدی پست بعدی
  1. #1
    مدیر کل Vahid آواتار ها
    تاریخ عضویت
    Aug 2008
    نوشته ها
    2,724
    تشکر تشکر کرده 
    435
    تشکر تشکر شده 
    6,976
    تشکر شده در
    2,085 پست

    پیش فرض فرستادن ایمیل اخطار برای اتصال به root

    Want to be notified instantly when someone logs into your server as root? No problem, check out this nice tutorial on email notification for root logins. Keeping track of who logs into your server and when is very important, especially when you're dealing with the super user account. We recommend that you use an email address not hosted on the server your sending the alert from.

    So lets get started!

    1.
    Login to your server and su to root, I know the irony!

    2. cd /root

    3. pico .bashrc

    4. Scroll to the end of the file then add the following:
    echo 'ALERT - Root Shell Access (YourserverName) on:' `date` `who` | mail -s "Alert: Root Access from `who | cut -d"(" -f2 | cut -d")" -f1`" you@yourdomain.com

    Replace YourServerName with the handle for your actual server
    Replace you@yourdomain.com with your actual email address

    5. Crtl + X then Y

    Now logout of SSH, close the connection and log back in! You should receive an email address of the root login alert a few minutes afterwards.
    Note: This is a great tool for servers that have multiple admins or if you give someone SSH access for whatever reason, although you should give out the root password to as few people as humanly possible and be sure to change it often.
    This will not magically alert you when a hacker runs the latest kernel exploit on your server and logs into SSH because they will create their own SSH/telnet connection. You should keep your system up to date, install a firewall and follow the latest security releases.
    برای پیش رفت در علم آسانسوری وجود ندارد پله ها را باید پیاده رفت /./ همیشه این یادتان باشد که دست بالای دست بسیار است.
    يادمان باشد براي يك بار ايستادن صد ها بار افتاده ايم /./ بک آپ مهمترین رمز موفقیت هاستینگ /./ امنیت مطلق نیست.
    ارتباط مستقیم با من :
    Admin -{(@)}- WebHostingTalk . ir

  2. تعداد تشکر ها ازVahid به دلیل پست مفید


اطلاعات موضوع

کاربرانی که در حال مشاهده این موضوع هستند

در حال حاضر 1 کاربر در حال مشاهده این موضوع است. (0 کاربران و 1 مهمان ها)

موضوعات مشابه

  1. پاسخ ها: 13
    آخرين نوشته: May 27th, 2016, 12:34
  2. فروش سرور Root Server EX40 بدون ستاپ و انتقال به پنل شما
    توسط hegza در انجمن فروش سرور اختصاصی
    پاسخ ها: 2
    آخرين نوشته: October 12th, 2015, 14:14
  3. ساخت کاربر در لینوکس با دسترسی root
    توسط miladdh در انجمن سوالات و مشکلات
    پاسخ ها: 5
    آخرين نوشته: April 10th, 2015, 13:50
  4. پاسخ ها: 1
    آخرين نوشته: September 13th, 2012, 02:53
  5. نفوذ و دسترسی Root
    توسط Arte در انجمن مباحث دیگر
    پاسخ ها: 18
    آخرين نوشته: December 5th, 2010, 11:56

مجوز های ارسال و ویرایش

  • شما نمیتوانید موضوع جدیدی ارسال کنید
  • شما امکان ارسال پاسخ را ندارید
  • شما نمیتوانید فایل پیوست کنید.
  • شما نمیتوانید پست های خود را ویرایش کنید
  •