Tag Archives: password

Change sudo default password timeout

Change sudo default password cache | sudo’s default password cache time is 5 minutes. To change the default time, it is possible to edit a setting in /etc/sudoers as desired. I’ll show you how! Edit /etc/sudoers with your desired text editor, or as standard with sudo visudo: $ sudo visudo For example, to increase the timeout to 30 minutes for user

Suse | sudo asks for root password

Suse | sudo asks for root password | By default, the sudo command on Suse Linux asks for the root password instead of the user’s password. I’ll show you how to fix that to be more expected (and secure!) behavior of sudo and only ask for the user’s password. 1. Crack open a terminal, and issue: $ sudo visudo 2. Comment out the

Reset or Change User Password in Linux

Reset or Change User Password in Linux | To set or reset a user password in Linux, use the command passwd Here are some tips! When logged in as your regular account, simply type passwd at the command prompt to change your own password: scott@localhost:~$ passwd Changing password for scott (current) UNIX password: Enter new UNIX password: Retype new UNIX password: passwd: password

Prevent Postfix Brute Force

Prevent Postfix Brute Force | An often used attack vector is brute forcing MTA logins. While most admins watch ssh auth logs like a hawk, email auth/login logs are most often not closely watched for this sort of thing if at all. I’ll show you one way to easily prevent a Postfix brute force attack! This how-to focuses on fail2ban

Set Password Expiration for Linux Accounts

Set Password Expiration for Linux Accounts | For security, it is good to enforce password expiration. Here’s how you do it in Linux. Edit the file /etc/login.defs: sudo nano /etc/login.defs Here you can specify options for password expiration: PASS_MAX_DAYS 90 PASS_MIN_DAYS 7 PASS_MIN_LEN 14 PASS_WARN_AGE 7 Max Days: maximum life of a password Min Days: prevent a second change again for X