Software

Creating an SFTP Unix Group with chroot Jailing

(resource: http://www.minstrel.org.uk/papers/sftp/builtin/) tl;dr version (assuming you’re using OpenSSH): useradd username groupadd sftponly usermod -a -G sftponly username usermod -s /sbin/nologin username usermod -d /path/to/jailed/dir username modify /etc/ssh/sshd_config as follows: # override default of no subsystems #Subsystem sftp /usr/libexec/openssh/sftp-server Subsystem sftp internal-sftp #... read more

Mass Renaming Files via Command Prompt

Source: http://superuser.com/questions/16007/how-can-i-mass-rename-files-from-the-command-line-or-using-a-3rd-party-tool Thanks to zdan of superuser.com tl;dr? Here’s the script: dir /B > fileList.txt for /f “tokens=1,2,3,4,5 delims=-” %i in (fileList.txt) DO ren “%i-%j-%k-%l-%m” “%i-flowers-%l-%m” rm fileList.txt  Enjoy. Now for the curious, read... read more

Manually Remove Disabled / Unchecked MSConfig Program Items

It took a while to find this one. After accidentally installing a virus and cleaning it manually, I wanted to clean up the registry entries in MSConfig to not show the now defunct startup .dll’s and .exe’s The way to do this is quite simple actually. There are 3 locations in your registry where the information is held. The first two are: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run When... read more