I know this is a late response, but I was encountering a similar situation when trying to upgrade. I finally found a way to access the
First, navigate to your
drupal/ directory. Once there, run
You'll then be accessing the shell. From there, enter
su. This allows you to act as a superuser. From here you should be able to
cd htdocs and perform the update.