Cannot edit existing password using vim (or gvim)

Renato Alves alves.rjc at gmail.com
Tue Nov 29 18:51:48 CET 2016


Most likely permissions. Try: ls -ld /dev/shm



On 29/11/16 18:13, Jonathan Clark wrote:
> 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
> 
> 
> 
> 
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> https://lists.zx2c4.com/mailman/listinfo/password-store
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20161129/14c53d23/attachment.asc>


More information about the Password-Store mailing list