Cannot edit existing password using vim (or gvim)

Jonathan Clark ads at whatho.net
Tue Nov 29 18:13:21 CET 2016


When I try to edit an existing password using vim, when it comes time to
save (I enter :w as a vim command) I get a message
"/dev/shm/pass.tQVSIzXmX17hI/McsB5-test-pass.txt" E212: Cannot open file
for writing


"/dev/shm/pass.BrDRETCxY0V0s/DlvET-visa...3603.txt" E212: Cannot open file
for writing".

I'm sure I used to be able to edit passwords, but I can't work out why I
can't save to /dev/shm. Does anybody have any ideas?

Steps to recreate:

1) pass add test-pass (followed by entering the password twice)
2) pass show test-pass N.B. works fine and displays password from previous
step
3) pass edit test-pass

opens instance of gvim, so I make a change and :w and I get the error
message above.


Notes:


   1. mount | grep "shm" gives
   tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
   2. df -h | grep shm gives
   tmpfs                  3.8G  152M  3.7G   4% /dev/shm i.e. we're not out
   of temp disk space
   3. crontab -e works, so saving to a temporary file seems to work
   4. with EDITOR set to nano, it seems to work

Thanks,
A
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161129/2af0330c/attachment.html>


More information about the Password-Store mailing list