Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Login information prompt

2025-03-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

Realize the information prompt before and after login by modifying issure motd

Login information display data: / etc/issue (regardless of whether the login is successful or not)

Login information display data: / etc/motd (can be displayed only if the login is successful)

With regard to / etc/motd/etc/motd, or messageoftoday (bulletin board information), the contents of the / etc/motd file are displayed on the user's terminal each time the user logs in. The system administrator can edit the system activity message in the file, for example, the administrator informs the user when the system will be upgraded, when the system will be maintained, and so on. If shell supports Chinese, you can also use Chinese, which makes it easier to understand.

The disadvantage of / etc/motd is that if the user logs in to the system with a graphical interface, this information will not be displayed.

The usage of the / etc/issue/etc/issue file is not much different from the / etc/motd file, the main difference between them is that when a network user or through a serial port logs in to the system, the file content of / etc/issue is displayed in front of the login prompt, while the content of / etc/motd is displayed after the user successfully logs in to the system.

1. The machine on the issure line should not be displayed as much as possible, because this is displayed before login, that is, it will be displayed regardless of whether you log in or not. So this display will be dangerous, it will expose the configuration of the machine.

More / etc/issue

CentOS release 6.5 (Final)

Kernel\ r on an\ m

The date of\ d local time can be modified directly by vim.

\ l display the interface of which terminal

\ m display hardware level (i386 engine i486 Universe i586 Universe i686....)

\ nShow the network name of the host

\ o display domain name

\ r version of the operating system (similar to uname-r)

\ t display the time of the local time

\ s name of the operating system

\ v version of the operating system

Modify to

The effect is as follows

2. Motd is a notification, prompt, warning, which will be displayed after logging in to the system. If the machine supports Chinese, it can be made into Chinese, easy to read is better.

Modify to

The effect is as follows

After many linux hosts have been used, several files collected by the users include / etc/issue, which contains your version release number. For security reasons, we should try to modify the following files.

1.) it is recommended to delete / etc/redhat_release to change the name. If you rush, some software may not be installed.

New name mv / etc/redhat_release / etc/

2.) Editor / etc/issue # suggests modifying the keywords in it

3.) write / etc/motd # bulletin board, if there is an unauthorized user intruding, you can give a text warning, there are lawsuits abroad because of this matter, the reason is to go in to prompt Welcome. He he

List the following sample essays:

(1)

* Wrrning***

Without the owner's prior written consent

No decompiling or reverse-engineering shall be allowed

* Notice:

This is a private communication system.

Unauthorized access or use may lead to prosecution.

(2)

* Wrrning***

Authorised access only

This system is the property of www.pcxxoo.com

Disconnect IMMEDIATELY if you are not an authorized user!

Your IP has been IDS records Don't damage any files!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report