necrux

Print Until it Makes Sense!

  • Who am I?

SMTP Sender-Dependent SASL Authentication in Postfix

January 18, 2016 / 1 Comment

In a previous article I discussed how to use Mailgun as a relay in Postfix. This works great if you are only sending email from one website on your server, often times however you will have multiple websites sending email on a single server. In these cases, websites NOT belonging to the sender domain will … [Read more…]

Posted in: email, Linux, Mailgun, Postfix Tagged: email, Linux, mail, Mailgun, Postfix

My Adventures with Multiple Monitors on Linux

January 4, 2016 / Leave a Comment

Using multiple monitors on my Linux laptop has introduced a couple of unique issues. The largest of which is that the laptop seems to forget my monitor configuration every time I unplug it. This article is going to discuss how I addressed this problem and how I spanned my desktop wallpaper. But first, a bit … [Read more…]

Posted in: Linux Tagged: Fedora 21, Gnome 3, Linux, Multiple Monitors, span wallpaper

Parse Log Files with sed

January 3, 2016 / Leave a Comment

When parsing log files sed is not the go-to tool for most techs, but it offers a pretty neat feature: the ability to easily search a log file for a specific date/time range. Pattern Matching sed -n ‘/Dec 30 13:00/p’ /var/log/messages Date Range Matching sed -n ‘/Dec 30 13:00/,/Dec 30 14:00/p’ /var/log/messages Change Delimiters If … [Read more…]

Posted in: Bash, Linux, sed Tagged: Bash, Linux, logs, sed

Backup and Restore Permissions in Linux

December 31, 2015 / Leave a Comment

Inevitably every Linux administrator will eventually have to alter permissions and owerships, perhaps even FACLs. But what happens when your changes go awry? The problem is amplified if you were making changes recursively! Backup Permissions Fortunately there is a pretty simple method to backup the permissions, ownerships, and FACLs: getfacl -pR /path/to/backup > /root/perms.bak NOTE: … [Read more…]

Posted in: Bash, Linux, Permissions Tagged: FACLs, Linux, Ownersip, Permissions

Bind Mounts in Linux

December 31, 2015 / Leave a Comment

Bind mounts in Linux allow you to mount one part of the file hierarchy somewhere else. I highly recommend using bind mounts in chrooted environment as it can simplify user access control. Creating Bind Mounts Bind mounts were added in kernel 2.4.0, so older systems will not support it. Run uname -r to verify your … [Read more…]

Posted in: Bash, FTP, Linux, SFTP Tagged: Bind Mounts, Linux

(S)FTP(S) or: How I Learned to Stop Worrying and Love File Transfer

December 29, 2015 / Leave a Comment

File transfer is a fundamental concept of the Internet, however there are a plethora of configuration options that often lead to confusion. In this article I am going to discuss installation and configuration of FTP, FTPS, and SFTP as well as how to chroot (i.e. jail) users for these services. FTP, The Basics FTP is … [Read more…]

Posted in: FTP, Linux, SFTP, SSH Tagged: Active FTP, FTP, FTPS, Passive FTP, SFTP

Bash Shortcuts

December 19, 2015 / Leave a Comment

I tend to spend quite a bit of my time on a command line, so I am always looking for little ways to make my life easier. Because of that, this post will be a bit of a living document that I plan to occasionally update as I discover more handy tricks. This is not … [Read more…]

Posted in: Bash, Linux Tagged: Bash, Linux, Shortcuts

The Anatomy of an SSH Connection

December 19, 2015 / Leave a Comment

Over the last couple of days I have become increasingly interested in unraveling the mysteries behind establishing an SSH connection. The process is very intricate and some of the documentation seems scattered, so I decided to write a bit about it in the hopes that someone else may benefit. Prior to writing this article I … [Read more…]

Posted in: Linux, SSH Tagged: KexAlgorithm, Key Exchange, Linux, SSH, SSH Encryption

Getting Started with Mailgun

December 17, 2015 / Leave a Comment

Mailgun is a developer-centric approach to email. It can be used to simply relay email, but it can do so much more! In this article I am going to discuss basic configuration for using Mailgun as a relay with Postfix and briefly discuss some of the additional features offered by Mailgun. Step 1) Account creation … [Read more…]

Posted in: email, Mailgun, Postfix Tagged: email, Linux, mail, Mailgun, Postfix, Rackspace

SSH Match Statements

September 17, 2015 / Leave a Comment

An often underused feature of OpenSSH is the Match statement. Match statements work on OpenSSH 4.4+; applicable versions ship with RHEL/CentOS 6+ and Ubuntu 12.04+. The Match directive accepts the following options: Match User Match Group Match Host Match LocalAddress Match LocalPort Match Address Match statements can be used to help harden SSH but can … [Read more…]

Posted in: Linux, SSH Tagged: Linux, Match Statements, SSH
1 2 Next »

Recent Posts

  • SMTP Sender-Dependent SASL Authentication in Postfix
  • My Adventures with Multiple Monitors on Linux
  • Parse Log Files with sed
  • Backup and Restore Permissions in Linux
  • Bind Mounts in Linux

Recent Comments

  • D. Axel on SMTP Sender-Dependent SASL Authentication in Postfix

Archives

  • January 2016
  • December 2015
  • September 2015

Categories

  • Bash
  • email
  • FTP
  • Linux
  • Mailgun
  • Permissions
  • Postfix
  • sed
  • SFTP
  • SSH
  • Virtualization

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org