Jesin's Blog

Welcome to the Portal of Technology

  • Facebook
  • GitHub
  • RSS
  • Twitter
  • Home
  • Categories
    • Domains
    • Linux
    • Networking
    • PHP
    • Virtualization
    • Web Design
    • Web Servers
    • Windows
  • WordPress Plugins
    • Custom Error Pages
    • HTTP Digest Authentication
    • Mailgun Email Validator
  • Toolbox
    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool
  • About Me
  • Contact Me
  • Sitemap
Home ›
Linux ›
Change Linux Login banner

Change Linux Login banner

April 29, 2011 Linux Jesin A Leave a Comment

linux category thumbnail

Banner screens provide a lot of important and warm welcome messages, but they also expose the system to a number of threats by displaying the exact version number. In Linux by default after your system starts when you come to the terminal you may see a screen like this

Linux Login Banner
The default banner in Linux displays the OS name and version number

You can customize this banner according to your liking to add a personalized message or to make it more informative.

The banner message is located in the file /etc/issue before editing it, it is always wise to take a backup

cp /etc/issue{,.bak}

will make a copy of the file with the name issue.bak. Open the file and edit it to your heart’s content. Some of the switches are specified here

\r - Displays the kernel's version e.g. 2.6.32-71.el6.i686
\m - Displays the machine's hardware name e.g. i686
\d - Displays the current system date in YYYY-MM-DD format e.g. 2011-04-29
\t - Displays the current system time e.g 21:45:30
\n - Displays the hostname of the system
\l - Displays the current terminal number e.g. tty2

I’ve done some tweaking to my Linux login banner take a look at it.

Linux Modified Banner
The Linux login banner now displays the date time and hostname

Related posts:

change default runlevel in linuxHow to change the default runlevel in Linux linux category thumbnailCommand to Display Directory Sizes in Linux windows category thumbnailHide Last Logged in Username in Windows (Registry Tweak) linux category thumbnailSetup a DHCP server on Linux linux category thumbnailChange Home Directory in Linux

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Get a wealth of information delivered to your inbox. Subscribe and never miss a single article.

  • Tutorials and howtos
  • Code, scripts and commands
  • Online Tools

* No spam, unsubscribe anytime

Hire Me

  • SSL installation and hardening (A+ on Qualys SSL test)
  • Apache & Nginx configuration
  • Email deliverability improvement (10/10 on Mail Tester & MailGenius)
  • WordPress customization, optimization and migration
  • and much more…

    Tools

    • DNS Lookup Tool
    • htdigest Generator Tool Online
    • htpasswd Generator Tool Online
    • HTTP Headers Lookup Tool
    • MD5 Encryption Tool
    • Open Port Check Tool
    • SHA-1 Encryption Tool
    • URL Encoding/Decoding Tool

    Nav

    • Home
    • About Me
    • Contact Me
    • Privacy Policy
    • Sitemap
    Vultr SSD VPS

    Creative Commons License
    Jesin's Blog by Jesin A is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
    Based on a work at websistent.com.