How can I log into a Linux computer without knowing the root password?
In fact, UNIXes store their passwords (hashes) in special files on a disk, it’s location depends on OS version. It used to be the file /etc/passwd. That’s why theoretically you can use the same methods for UNIX (see 4.1.1). There is a simplier method – it’s often possible to load UNIX in single-user mode. Read the documentation for your UNIX-version to learn how to do it.