`drush uli` generates correct link but results in 'Access Denied' I have set up a Drush alias for my website (hosted on a shared hosting), the alias works correctly, because commands like drush status, drush cc all, etc. work. The problem comes with drush uli. It generates the one-time login link, the domain is correct, everything looks all right, but when entered into a browser, it results in standard Drupal 


  Access Denied


page.

Part of setting up the alias and some interesting issues around path-alias-es, relations to database settings, it's usage and relevancy the aliases is originally discussed in Drush issues page on GitHub.

Technical information:


This is a clean Drupal 7 installation, without contrib modules.
I can log in using password (even using password set via drush upwd using the same alias).
I have checked all possible sources (like truncating sessions table, etc.) discussed in similar but yet different issue on StackExchange.
I have tried different browsers and cleared browser caches and cookies as suggested in various similar discussions on Drupal.org, all without luck.




Drush alias:

$aliases['myalias'] = array(
  'uri' =&gt; 'mysite.com',
  'root' =&gt; '/home/mysite.com/web',
  'path-aliases' =&gt; array(
    '%drush' =&gt; '/home/.composer/vendor/drush/drush',
   ),
  '%files' =&gt; '/home/mysite.com/web/sites/mysite.com/files',
); 


The alias works correctly for other commands like clearing caches and drush status confirms that Drupal is bootstrapped correctly.
This can happen when the user is blocked. Setting the status to 1 in the Users table may resolve it.