"Logging In" From a Console Plugin?
Craft 2 doesn't really have the concept of sessions or logging in for it's console app.

If I had to guess that error is more about file system permissions, but you'd want to check your log files for a full stack trace to see where it's originating from.