How do you login to a Drupal site if you do not have the password of the admin user or user 1 but still have access to the command line? Can I use drush to login to the Drupal site
You can login to the Drupal site if you have access to the command line and Drush using the following Drush command
$ drush uli username
Will give you a URL that you can copy paste into your browser address bar and login as that user. Make sure that you update the domain name to be the same as that of the site.