formats

Change sudo default password cache

Published on August 4, 2012, by + in linux, sysadmin.

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

formats

Suse | sudo asks for root password

Published on July 25, 2012, by + in linux, sysadmin.

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

formats

Reset or Change User Password in Linux

Published on July 22, 2011, by + in linux, sysadmin.

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

formats

Prevent Postfix Brute Force

Published on May 26, 2011, by + in linux, sysadmin.

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

formats

Set Password Expiration for Linux Accounts

Published on March 19, 2011, by + in linux, sysadmin.

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

formats

SSH Password Login From Specific IP Ranges

Published on March 16, 2011, by + in linux, sysadmin.

SSH Password Login From Specific IP Ranges | Want to require ssh keys from remote sources, but then allow ssh passwords from your local home network? It is easy to make this specific configuration or alter as desired for your server. I’ll show you how! 1. Edit the sshd_config file sudo nano /etc/ssh/sshd_config In this file, edit the existing line PasswordAuthentication to ‘no’

formats

Generate Strong Passwords

Published on January 24, 2011, by + in linux.

Generate Strong Passwords | How can I generate strong passwords from the command line? The excellent program apg is fantastic for generating all sorts of passwords. 1. Install apg: $ sudo apt-get install apg 2. Then you can simply run $ apg …which will run default options and give something like this: stmiller@li166-66:~$ apg Please enter some random data

formats

Thunderbird Recover Email Password

Thunderbird Recover Email Password | How do I recover saved passwords from Thunderbird? Finding saved email passwords in Thunderbird is as easy as going to the Security portion of the settings: Tools -> Options (Windows) | Edit -> Preferences (Linux) | Thunderbird -> Preferences (OS X) -> Security > Passwords > Saved Passwords There you are given an option to

Home Posts tagged "password"