Backup your /etc/ directory to a tarball with the date | Backup your /etc! Here is a random useful command I incorporate into various backup strategies.
How to Run cron job as Regular non-root User | Instead of putting all of your server’s cron jobs as root, consider having them in a regular user’s crontab. This is better for security reasons as well as good general practice. I’ll show you how!
Google Authenticator Two-Factor SSH Authentication for Debian Wheezy | Debian does not provide a package for Wheezy to use Google Authenticator as a pam module. However, you can grab and install the Jessie (Debian testing) deb. Here are some steps!
Enable Automatic Updates in Ubuntu Linux | With Ubuntu or Debian Linux it is possible to enable automatic updates. Here’s how it works!
Best Practices for Linux Administration | Here are best practices for Linux Administration. By following these, one can be sure that a solid foundation is built which any IT staff present and future can easily follow.
ss – the alternative to netstat | An alternative to netstat is the utility ss. ss dumps socket statistics in a clear and more simple view as compared to netstat. Let’s check it out! With no options specified, ss displays a list of TCP sockets with established connections. This is useful on a server to see what clients are connected. The option
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