six demon bag
Wind, fire, all that kind of thing!
2021-01-22
Generate a Solr Password Hash With a Shell Script
In 2017 I published a small Java utility for generating Solr password hashes, because I didn't like launching Solr with well-known credentials. I would've preferred doing it with just a shell script, but found myself unable to replicate the hash creation process with sha256sum
.
A couple days ago user rmalchow contacted me on Github with a solution for that, which I want to share here.
Posted 15:28 [permalink]
2014-03-18
Migration of SMB Shares
Share migration is a common (if not integral) part of a file server migration. If you just move the shares from one host to another host the process is pretty straightforward as described in MSKB article 125996:
Export
[HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares]
on the old file server to a file:reg export HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Shares shares.reg
Copy the file to the new file server and import it:
reg import shares.reg
Restart the
Server
service:net stop server && net start server
Done.
Posted 21:09 [permalink]
2013-12-11
Some Useful DFS Commands
List DFS replication groups:
dfsradmin rg list
List replicated folders in a replication group:
dfsradmin rf list /rgname:<REPL_GROUP>
Posted 15:16 [permalink]
2013-02-07
Auditing Windows File ACLs
Sometimes you run into a situation where you need to determine the permissions on some directory tree. Be it to document or clean up permissions on the subdirectories of a share, to troubleshoot permission issues due to deleted accounts or groups, or whatever. Manually analyzing permissions is quite tedious, even when using standard tools like cacls
or xcacls
. The output of XCACLS.vbs
isn't any better, but since it's a script, I considered modifying it to suit my needs … until I took an actual look at the script. I abondoned the thought afterwards.
Posted 20:14 [permalink]