(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 [...]
Read MoreSource: 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 [...]
Read MoreIt 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 [...]
Read More