Author Archives: Ahmed Tawfik

Unknown's avatar

About Ahmed Tawfik

Cybersecurity Professional, Systems Engineer, OSS & Linux Geek

Force expiry of a Linux Account

Just locking the linux account isn’t enough, since the user can use other methods to login, such as PKI. The best solution would be to force expire the account: sudo chage -M 0 username

Posted in Linux | Tagged , , , | Leave a comment

Search for an AD user using PBIS and userid

Let’s say I have a user id in Linux 234234234 and I need to check which user that represents in Active Directory. All I need is: pbis enum-users | grep -B 5 -A 5 234234234 where: enum-users: returns all users … Continue reading →

Posted in Linux, Uncategorized | Tagged , , | Leave a comment

Create random passwords from command line in Ubuntu

There are two handy tools that generate random passwords from the command line in Ubuntu (and other distros of course). It’s more secure to use passwords from these tools instead of online password generators. First of which is apg and … Continue reading →

Posted in Ubuntu, Uncategorized | Tagged , , , , | Leave a comment

How to solve vSphere Windows Client 5.1 SSL Error

In this article, I am using Windows 7 64-bit with vSphere Client 5.1.0 This issue has been bugging me for quite some time. Whenever I search for any VM inside vSphere Windows Client, I keep receiving this message, and I … Continue reading →

Posted in Uncategorized, vSphere | Tagged , , , , | Leave a comment

Use fsck with LVM

A VM’s filesystem (which was using LVM) was corrupt and it couldn’t boot. All I did was force boot from systemrescuecd and ran the following command: fsck.ext4 /dev/vgname/lvname Note: Switch ext4 to any other type of filesystem you have, e.g. … Continue reading →

Posted in Linux, Uncategorized | Tagged , , , | Leave a comment