gpg -e file
to encrypt file, which leaves me with a
catthe contents and its encrypted. (
- Then to test it, I do this:
echo 'this is a test' > file.gpg
This completely overwrites all encryption in the file with that string.
Why? Is there a way to make the
gpg file not overwritable?
I just tested the encrypted file to see if I could overwrite it with the
echo cmd, and it was overwritten. So, why encrypt a file with
gpg if with a simple
echo cmd I can overwrite it?? I tried the
chmod u-w file.gpg, it still did not protect the file from being overwritten. Is there some other parameter in gpg that I'm not plugging in? Authentication is just my user name in
gpg, no passphrase. I don't want the
gpg file to be overwritten.