• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • Life always offers you a second chance ... Its called tomorrow !!!

    Tuesday, August 14, 2012

    How to add a Banner to your Linux machine

    Banner is something which you will see before or after you login to a particular system.
    In this post I will show you how to create a banner to give a info about the machine which the user is about to access.

    Check this file in your machine
    # cat /etc/issue
    CentOS release 6.2 (Final)
    Kernel \r on an \m

    or
    # cat /etc/issue.net
    CentOS release 6.2 (Final)
    Kernel \r on an \m

    This is the file which is read before you login to the machine so we will make some changes here:
    # vi /etc/issue
    This node contains Oracle Database 11gR2 and the owner of this node is Deepak.

    This file is read after you log in successfully to your node
    # vi /etc/motd
    Welcome Deepak you have successfully logged in.

    # vi /etc/ssh/sshd_config
    # Add a line 129
    Banner /etc/issue

    Restart the ssh services
    # service sshd restart
    Stopping sshd:                                            
    [  OK  ]
    Starting sshd:                                            [  OK  ]

    Try to ssh your machine from a client machine
    # ssh 10.10.10.19
    This node contains Oracle Database 11gR2 and the owner of this node is Deepak.
    root@10.10.10.19's password:
    Last login: Sun Aug 5 15:13:05 2012 from 10.10.10.30
    Welcome Deepak you have successfully logged in.



    Follow the below links for more tutorials

    Configure Red Hat Cluster using VMware, Quorum Disk, GFS2, Openfiler
    Tutorial for Monitoring Tools SAR and KSAR with examples in Linux
    How to configure Samba 4 Secondary Domain Controller
    How to secure Apache web server in Linux using password (.htaccess)
    How to register Red Hat Linux with RHN (Red Hat Network )
    Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
    15 tips to enhance security of your Linux machine
    Why is Linux more secure than windows and any other OS
    What is the difference between "su" and "su -" in Linux?
    What is kernel-PAE in Linux?
    What is swappiness and how do we change its value?
    How to log iptables messages in different log file
    What are the s and k scripts in the etc rcx.d directories
    How to check all the currently running services in Linux
    How to auto start service after reboot in Linux
    What is virtual memory, paging and swap space?

    0 comments:

    Post a Comment