I’m now a DB admin and I always forget how to manage MySQL/MariaDB users. Here are some self-notes to not search over and over the same topic on Google. Delete user:
Git repositories are very interesting from an OSInt perspective. There are a few commands to find out deleted files and recover them in seconds: # Find deleted files git log --diff-filter D --pretty="format:" --name-only | sed '/^$/d' > deleted_files.
Every time I need to work with Linux SNMP utilities, I have to re-learn some commands. This post summarizes useful SNMP commands for anyone who needs a reference guide. Common options Usually, I need to build a custom and trusted MIB repository.
VRF (Virtual Routing and Forwarding) allows having multiple and separated routing tables on the same system. On Linux, VRF support has been started on 4.3 kernels. Ubuntu 16.04 brings 4.4 kernels but mind that 4.
A very short post about 802.1x (dot1x) on Cisco Catalyst 2950 series. Configure RADIUS and enable dot1x on the switch: aaa authentication dot1x default group radius aaa accounting dot1x default start-stop group radius dot1x system-auth-control Then enable dot1x on all interfaces (additional security commands are added in the example below):
OpenSSH allows SSH/SFTP users to connect to the whole system by default. In many cases this is not the expected behavior: users should be relegated to the home their home directory only.
TFTP or Trivial File Transfer Protocol is a simple file transfer protocol. TFTP uses UDP port 69, no authentication or encryption is supported, and directory navigation is not possible. Three file transfer methods are available: netascii (or ASCII for text files), octet (or image for binary files), and mail (not used anymore).
I replaced most of my Bash script with Python but sometimes I still need Bash. The following script requires uuencode and sends an email with attachments using Bash: #!/bin/bash PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" EMAIL_OK="dainese@example.
In this post we’ll see how to shrink a virtual (VMDK) disk before releasing the OVF/OVA image. Developing a VM which will be distributed online, require saving space. After deleting cache, log files, and so on, vmdk files won’t become smaller.