lastpass / lastpass-cli

LastPass command line interface tool
GNU General Public License v2.0
2.86k stars 290 forks source link

Error: Unable to get pubkey or your user (-22) #321

Open JamesPierce82 opened 7 years ago

JamesPierce82 commented 7 years ago

I am currently having issues trying to create shared directories using the LastPass CLI tool. I attempted to get general help from your support team on the last pass website, but they basically just referred me back to here for any specific help.

As the title says, when I attempt to create a shared folder using the command "lpass share create folderName" I receive an error. I am not sure what is causing this, and cannot seem to find any solution online. I realize this isn't really an "issue" as they would normally be used, but unfortunately I can't see any other way to ask for assistance in resolving my issue.

The commands I run, in order are : "lpass status" Not Logged in. "lpass login email@email.com" Success: Logged in as email@email.com "lpass status" Logged in as email@email.com "lpass share create folderName" Error: Unable to get pubkey for your user (-22)

bcopeland commented 7 years ago

You most likely don't have a sharing key set up yet. See this for instructions on generating one:

https://lastpass.com/support.php?cmd=showfaq&id=7096&questiondefault=sharing%20key

JamesPierce82 commented 7 years ago

I attempted to follow the steps as listed, however I do not have the "Generate Sharing Key" option which the page seems to indicate I should have already generated one. I also made sure that the LastPass extension is running with the binary enabled, however I still can't seem to create a shared folder through the CLI, and still do not have any option to generate the key manually from the more options section.

bcopeland commented 7 years ago

Is your user an enterprise user? I believe shared folders are restricted to enterprise and teams at the moment.

JamesPierce82 commented 7 years ago

It is, yes. Sorry, I did take that screenshot from a personal account, I'll add one from the enterprise account, but it looks pretty much the same minus the enterprise options. screen shot 2017-07-31 at 11 38 08 am

JamesPierce82 commented 7 years ago

I don't know if you have found any further information in regards to this @bcopeland , If not I will keep my ears open to see if anyone else has run into this and found a solution.

sorests commented 6 years ago

What helped me was Chrome -> Developer tools -> change at style="display:block;" which initially is set to "none"

screen shot 2018-05-22 at 14 14 39