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
Postfix 2.2.3 main.cf configured sample file October 28, 2008 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix myhostname = server.domain.com mydomain = domain.com myorigin = $mydomain inet_interfaces = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail. $mydomain, www.$mydomain, ftp.$mydomain local_recipient_maps = unknown_local_recipient_reject_code = 550 mynetworks = 192.168.1.0/24 127.0.0.0/8 #relay_domains = $mydestination #relayhost = $mydomain #relayhost… Read More
Debian/Ubuntu font installation using command June 7, 2024 Install a font manually by downloading the appropriate .ttf or otf files and placing them into /usr/local/share/fonts (system-wide), ~/.local/share/fonts (user-specific) or ~/.fonts (user-specific). These files should have the permission 644 (-rw-r–r–), otherwise they may not be usable. Run fc-cache to update the font cache (add -v for verbose output). The… Read More
Reset Forgotten MySQL Root Password September 9, 2008September 9, 2008 Have you ever forgotten the root password on one of your MySQL servers? No? Well maybe I’m not as perfect as you. This is a quick h00tow (how to) reset your MySQL root password. It does require root access on your server. If you have forgotten that password wait for… Read More