Skip to main content

Posts

Showing posts with the label #linux

Change Grub timeout duration

 Grub is the most commonly used boot loader in Linux systems.         Grub : A program that calls a Unix/Linux operating system into memory. Officially GNU GRUB, GRUB is a popular boot loader due to its flexibility and configuration capabilities, allowing changes to be made at boot time and support for boot images from the network.  Quite often you don't see the grub menu at all. And under most circumstances it is OK. But if you have some problems and you have to go to recovery mode, you have to see the menu and select an OS from the menu.  So you love to see this grub menu when you boot your system and you are unable to see it. The culprit is the GRUB_TIMEOUT. If this value is set to 0, then you can't see the menu.  The correct method to change its setting is through the file /etc/default/grub   sudo vi /etc/default/grub $ cat /etc/default/grub # If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.c...

Forcing password changes in Linux - chage

 If you are like me - ultra paranoid, you are not happy with one password. You want to change the password frequently (before the hacker some how solves it ;) ). chage is the command for you. chage - there is no n here - determines after how many days the password of a user expires.  This is what man page says about it          The chage command changes the number of days between password changes and the date of the last password change. This information is used by  the system to determine when a user must change his/her password. You can set number of days after which password expires, when do you want to be prompted for it etc.  $sudo chage username [sudo] password for username: Changing the aging information for username Enter the new value, or press ENTER for the default     Minimum Password Age [0]:     Maximum Password Age [10]:     Last Password Change (YYYY-MM-DD) [2021-08-26]: ...