Limit user to chrooted SFTP access

If you would like to give a user sftp only access and have him chrooted in his own home dir, this is what does the trick: This has been tested on an Ubuntu 12.04 LTS system. Add the user as you normally would. Then you need to change the users default shell # usermod -s /usr/lib/sftp-server # echo ‚/usr/lib/sftp-server‘ >> …

Kerio Contacts Export Script (.eml to .vcf)

TheĀ Kerio MailserverĀ is a very good product in my eyes. It is easy to administer and offer almost all features needed in a groupware solution: Calendars, email, contacts, shared folders etc. It runs on Mac OS X, Linux and Windows and can operate as an Exchange replacement. It talks to all popular commercial and Open Source Clients such as AppleMail, Thunderbird, …

System Backup Script with tar

While BackupPC with it’s web interface is certainly a nice thing to have it imposes a few problems if you want to use it to backup your system. Bare metal restores are more tricky, because files are stored in a proprietary format. Hence you will need to set up BackupPC before you can restore your system, something that is not …

HowTo use LVM to create filesystem snapshots for backups

If you have large amounts of data you’d like to backup, it can be cumbersome to use the normal backup tools such as tar. If data changes during the backup you might end up with an unusable backup. If I want to backup my videos, recordings, music etc. of my MythTV box I cannot afford to take the filesystem offline …