To login into magento admin, using only ftp access is a little tricky. Through FTP open the class Mage_Admin_Model_User located at
Next find the
You need to add the line return true; after this i.e
$this->loadByUsername($username); return true;
And that’s it, now you login in admin using any password.