Deleting cold keys - permission denied

Hello

Im trying to delete keys off the server. I have backed them up but having a problem deleting them as no matter what, i get permission denied.

rm: cannot remove ‘payment.skey.gpg’: Operation not permitted

Can i give permissions to these files and then delete them? is that the correct way?

I also read that you can use cntools to backup and have the option to delete the keys but this option to delete no longer exists.

Thanks

Hi!

First, check who is the owner and what is the permission, so list the folder where these keys stored with ls -l

I did that and its my user.

Screenshot 2021-04-10 at 09.55.41

The keys are protected by cntools.

U must go to cntools - pool - decrypt first

then try to delete again with sudo

If doesn’t work please try to change the rights first

chmod 755 cold.xxx for all 3 keystry again to remove… but first check carefuly if u bkped correctly

Thank you!

Tried to decrypt and then i guess you can delete the payment.skey and stake.skey but what happens now when you want to encrypt again and these files are non existent?

You wallet is then always in a decrypted state?

Havent tried yet and chmod doesnt work.

If they make it this difficult then are you not advised to move keys off the server anymore?

Thanks

Tried to decrypt and then i guess you can delete the payment.skey and stake.skey but what happens now when you want to encrypt again and these files are non existent?
You wallet is then always in a decrypted state?

There is no need to encrypt anymore if u don’t have the cold keys from pool folder and payment.skey stake.skey from wallet folder

Havent tried yet and chmod doesnt work.

Try to give permisions for the priv folder for ur user
cd $CNODE_HOME
ls -l

sudo chown -R ur_user priv

If they make it this difficult then are you not advised to move keys off the server anymore?

In my opinion if u encrypted the files with a strong password can’t be decrypted if the files will be stollen but for 100% sure it’s better to bkp them and delete from the server… but make 2-3 copies of bkp on different usb

Cheers,