first commit
This commit is contained in:
9
WsConfman/confman/scripts/first_start.sh
Executable file
9
WsConfman/confman/scripts/first_start.sh
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
PASS=`< /dev/urandom tr -dc A-Za-z0-9'"<>,./?!@#$%^&(){}[]' | head -c8`
|
||||
oldPassword="Test2001"
|
||||
newPassword=$PASS
|
||||
rootdevice="/dev/sda3"
|
||||
printf '%s\n' "$oldPassword" "$newPassword" "$newPassword" |sudo cryptsetup luksAddKey $rootdevice
|
||||
printf '%s\n' "$oldPassword" |sudo cryptsetup luksRemoveKey $rootdevice
|
||||
echo $newPassword
|
Reference in New Issue
Block a user