Arg, forgot root password

It's been months since I've had to log into my server using root, and now I can't upgrade any packages without it. I know the Ensim admin password, and can log into the control panel and ssh into the server, but apparently I forgot my root password where I can't su in. Does anyone know of a way I can reset this? (hopeless question, I know). I know most of the password except for a 3 digit number. Would it be possible to write some sort of shell script to try every number from 000 to 999, or does "su" start ignoring tries after 2-3 times?

 

 

 

 

Top