Access

Hi,
Got root using the r**** command.
I went back to the machine a day after to try to better understand what was going on and then the same command I used to get root did not work.
I got prompted for a password.
So I’m wondering if the first time I did things the right way…
Can someone give me more details ?