Skip to content

Commit

Permalink
canodrom fixed root_password
Browse files Browse the repository at this point in the history
  • Loading branch information
ilario authored May 12, 2024
1 parent 0d08dc1 commit 640ea93
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!#/bin/sh
#!/bin/sh

# Disclamer: We know that hardcoding the password is a bad idea and that uploading its hash on the internet is stupid

Expand All @@ -8,4 +8,4 @@
# password=FIXME
# hashed_passwd=$(openssl passwd -6 -salt "$salt" "$password")

sed -i 's/root::/root:$6$5VUgcTdRQN4igoWs$ZuZu.4ruzVUQ.Yg3klttzl57NrDySmJZOWKngIL9V/AjEDyCkx.o.cfIo2wLuJdCl9GHNR5sKm.ld5/09Q0WQ1:/' /etc/shadow
sed -i 's|root::|root:$6$5VUgcTdRQN4igoWs$ZuZu.4ruzVUQ.Yg3klttzl57NrDySmJZOWKngIL9V/AjEDyCkx.o.cfIo2wLuJdCl9GHNR5sKm.ld5/09Q0WQ1:|' /etc/shadow

0 comments on commit 640ea93

Please sign in to comment.