2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

7
vdh/get_escaped_pwd.sh Normal file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
# grep the user passed as script parameter in /etc/shadow and prints is escaped encrypted password.
# to be used when recreating users with the encrypted password (when the actual password is not known)
# execute as root
grep $1 /etc/shadow | awk -F':' '{ gsub(/\$/,"\\$",$2); print $1 ": " $2 }'