Note to self: Sometimes it is necessary to destroy not just a single but multiple ZFS snapshots. This can be done with some command line magic, but the zfs destroy subcommand has built in functionality too. Given a dataset pool1/dataset1 with 5 snapshots: snapshot1 snapshot2 snapshot3 snapshot4 snapshot5 [bash]zfs destroy pool1/dataset1@snapshot1,snapshot2,snapshot4[/bash] will destroy snapshot1, snapshot2 … Continue reading Destroying multiple ZFS snapshots
Category: Linux
ZFS Snapshots und Samba Shadow Copy [German only]
Ich bin seit einiger Zeit ein großer Fan von ZFS und sammle immer wieder mal Links zu dem Thema. Es gibt einen Blog-Post ZFS Snapshots und Samba Shadow Copy (auf Deutsch) von Manfred Larcher, den ich gerade gefunden habe, und den ich hiermit erwähnen will, so dass ich ihn später auch wieder finde.
Get Samba connection information
Note to self: The command to get connection information for a (Linux based) Samba server is smbstatus. It needs root privileges. e.g. [bash] sudo smbstatus -v | less [/bash]
Configure a svn repository on SourceForge to allow changing a log message
I tend to make typos in the log messages to SubVersion commits and it is always embarrassing when I later come across these typos. Svn can be configured to allow changing log messages by adding a server hook, but that's not the default. The now defunct OSDN, which was based on an old version of … Continue reading Configure a svn repository on SourceForge to allow changing a log message
Prevent the Proxmox Terminal UI installer to switch to graphics mode
I wanted to try Proxmox VE on one of the BMAX B6 mini PCs we recently bought - the ones which turned out to not meet the Windows 11 minimum requirements - and ran into an unexpected problem: Regardless whether I selected the graphical or Terminal UI installer, after a few seconds the display went … Continue reading Prevent the Proxmox Terminal UI installer to switch to graphics mode
When setting sshd PasswordAuthentication to no has no effect
After setting up ssh authentication via public/private key for my user account on my Ubuntu 22.04 server, I wanted to disable authentication via password for security reasons. So in /etc/ssh/sshd_conf I changed the entry PasswordAuthentication from yes (the default) to no: [plain] # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no … Continue reading When setting sshd PasswordAuthentication to no has no effect
Using two factor authentication for ssh with Ubuntu 22.04
Since many of the instructions I found on the internet seem to be flawed or at least outdated, here is how I managed to enable two factor authentication (2fa) with (time based) OTP in Ubuntu 22.04 using the Google Authenticator PAM plugin. Note: When using ssh private/public key based authentication, no OTP prompt will be … Continue reading Using two factor authentication for ssh with Ubuntu 22.04
Preventing accidental data loss with ZFS
I have recently converted the file system of some of our Samba servers from ext4 to ZFS. The idea was to use ZFS's compression feature to reduce the space some excessingly large files consume which can be easily compressed to take less than 1/10 the space. This works fine. Today we found that a directory … Continue reading Preventing accidental data loss with ZFS
When changing your password in a Samba NT domain does not work
I recently set up a Samba Server using Ubuntu 22.04 as an NT domain controller (not Active Directory!). After quite some time fiddling with the settings and finally getting external help it worked. I could successfully add a Windows 10 computer to the domain and then log into it using any of the configured domain … Continue reading When changing your password in a Samba NT domain does not work
A few things I recently learned about PuTTY (the ssh client)
I have been playing around with PuTTY (Yes, I know, a grown man playing with putty evokes some rather odd pictures. I'm talking about the ssh client tool here though). recently and discovered a few things I didn't know. You can specify the user name to connect with I already knew that there is a … Continue reading A few things I recently learned about PuTTY (the ssh client)