How to hide the Linux kernel version and the information displayed when logging in

Source: Internet
Author: User

1,/etc/issue
Usage: When we log in at the terminal interface, there will be a few lines of hint string, then this string is set in/etc/issue.
eg

[[email protected] ~] #cat  /etc/issue 
centos Release 5.6 (Final)  
kernel \ r on an \m 

[Email protected]/]# >/etc/issue #清空OS内核参数版本

[Email protected]/]# cat/dev/null >/etc/issue #清空OS内核参数版本

[Email protected]/]# cat/etc/issue #查看issue中的内容

CentOS Release 6.6 (Final)

Kernel \ r on an \m

[Email protected]/]# cat/etc/issue.net #查看issue. NET content

CentOS Release 6.6 (Final)

Kernel \ r on an \m


2,/ETC/MOTD
Usage: If you want the user to log in and get some messages, such as a message that you want everyone to know, you can join the file, and when you log in, tell the person who is logged in.
eg:

[Email protected] ~]$ VI/ETC/MOTD

Welcome to the Jiangxi Applied Engineering Vocational College CentOS Server!


This article is from the "linux~dba~mba~edu" blog, make sure to keep this source http://sky9896.blog.51cto.com/2330653/1678487

How to hide the Linux kernel version and the information displayed when logging in

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.