Disable Last Login Message on Linux using hushlogin Rumi, March 28, 2023 Single user To permanently suppress a Last Login message as per on user basis, create a hidden .hushlogin file inside a user’s home directory. For example to suppress a Last Login message for the linuxconfig user, we would run this command: $ sudo touch /home/linuxconfig/.hushlogin Similarly to suppress a Last Login message for the root user, we would run this command: $ sudo touch /root/.hushlogin System wide Note: you will need to login to your system’s root account in order to run these commands. To permanently suppress a Last Login message for the entire system, first empty /var/log/lastlog file: # > /var/log/lastlog The above will clear all last login information. To make the change permanent disable write access to this file: # chattr +i /var/log/lastlog Optionally you can clear all login and bad login attempts information which is displayed by use of last and lastb commands. To do so run: # >/var/log/wtmp # >/var/log/btmp Make the above file immutable if you wish the system to stop storing this information permanently: # chattr +i /var/log/wtmp /var/log/btmp Src: https://linuxconfig.org/how-to-disable-last-login-message-on-rhel-linux Related Administrations Configurations (Linux) Disable LogLog
Disbale/Enable Directory browsing in Apache December 22, 2008 This can be done either in following ways- Global settings in httpd.conf or Per directory using .haccess Related Read More
Enable IPTables on Rocky Linux 8 September 2, 2023 Disabling firewalld You can’t really run the old iptables utilities alongside firewalld. They’re just not compatible. The best way to get around this is to disable firewalld entirely (no need to uninstall it unless you want to) , and reinstall the iptables utilities. Disabling firewalld can be done using these… Read More
Mail Sync between 2 mailservers using Imapsync May 12, 2018May 12, 2018 Imapsync is an IMAP transfer tool used for copying emails from one IMAP server to another IMAP server. This article will help you to install imapsync on Ubuntu, Debian, and LinuxMint systems and transfer all your Mailboxes and emails between two IMAP servers. Step 1 – Install Imapsync Imapsync package… Read More