Tag Archives: linux tutorials

Book Review: PAM Mastery

Book Review: PAM Mastery
PAM Mastery Book ReviewLinux, FreeBSD, and Unix-like systems are multi-user and need some way of authenticating individual users. Back in the old days, this was done in different ways. You need to change each Unix application to use different authentication scheme. Also, authentication schemes differed between a variant of Unix systems. Porting was a nightmare. For example to use Windows Server (Active Directory) or LDAP for authentication you need to make changes to an application. Each application had its way of authenticating users. So Open Group lead to the development of PAM for the Unix-like system. Today Linux, FreeBSD, MacOS X and many other Unix-like systems are configured to use a centralized authentication mechanism called Pluggable Authentication Modules (PAM). The book “PAM Mastery” deals with the black magic of PAM.
Halal Vitamins

Powered by WPeMatico

Touch ID Support for sudo in MacOS Terminal for MacBook Pro

Touch ID Support for sudo in MacOS Terminal for MacBook Pro

Well, that was fast. Touch ID is a fingerprint recognition security feature, designed and released by Apple. It is currently available on the iPhone 5s/6/7 and Macbook pro-2016 editions. Many consider it as a huge security win for the MacBook Pro’s. This sounds amazing feature for command line users.

Say hello to sudo-touchid

sudo-touchid is a fork of sudo with Touch ID support on macOS (powered by the LocalAuthentication framework). Once compiled, it will allow you to authenticate sudo commands with Touch ID in the Terminal on supported Macs (such as the late 2016 MacBook Pros). Since Darwin sources for macOS 10.12 are not available yet, this project is based on sudo sources corresponding to OS X 10.11.6 and obtained from opensource.apple.com.

=> Download and usage information.

Halal Vitamins

Powered by WPeMatico

Interns are working hard to fix computer problems on National Cat Day

Interns are working hard to fix computer problems on National Cat Day

Here are interns in our office. They are working hard to fix server problems on national cat day 😉

Kittens working on computer

Kittens working on computer

We did receive some additional trouble tickets though. Tom’s TT read as follows,

I haven’t been able to find my mouse since the new intern fixed my computer.

Lmao.

Halal Vitamins

Powered by WPeMatico

How to run commands on Linux Container (LXD) instance at provision launch time

How to run commands on Linux Container (LXD) instance at provision launch time
I would like to perform common automated configuration tasks and run commands/scripts after the LXD instance starts. How to use cloud-init to run commands on my Linux Container (LXD) instance at launch time?
Halal Vitamins

Powered by WPeMatico

How to automatically mount zfs file system on Linux/Unix/FreeBSD

How to automatically mount zfs file system on Linux/Unix/FreeBSD

I have created a zfs file system called data/vm_guests on Ubuntu Linux server. After the server reboot, zpools do not automatically mount at /data/vm_guests. It is failing my KVM guest machines. How can I mount my ZFS (zpool) automatically after the reboot?
Halal Vitamins

Powered by WPeMatico

Find the oldest file in Unix or Linux file system

Find the oldest file in Unix or Linux file system

So I wanted to know the oldest file on my Debian Linux box.

find / -type f -printf '%T+ %pn' | sort | head -n 1
Here is an another example for /etc/
find /etc/ -type f -printf '%T+ %pn' | sort | head -n 10

Find the top 10 oldest file in a directory tree on GNU/Linux

Find the top 10 oldest file in a directory tree on GNU/Linux

So find command finds all files in / and print it with a special format. The %T+ (in -printf) means file’s last modification date and time in separated by +, for example ‘2004-04-28+22:22:05.0’. This is a GNU extension and may not work on other BSD/find or any other version of find. The %p indicts the file name. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. The sort command sorted input and passed it to head to display the oldest file on my GNU/Linux system. Cool, eh?

(Credit: Ubuntu forums).

Halal Vitamins

Powered by WPeMatico