1 |
191218 Mick wrote: |
2 |
> On Wednesday, 18 December 2019 07:33:51 GMT Andrew Udvare wrote: |
3 |
>> On Dec 17, 2019, at 20:51, Philip Webb <purslow@××××××××.net> wrote: |
4 |
>>> When encrypting a file, I was told : |
5 |
>>> root:552 root> gpg -c <filename> |
6 |
>>> gpg: WARNING: unsafe ownership on homedir '/home/purslow/.gnupg' |
7 |
>>> The file is owned by my user, ie <user>:<user> . |
8 |
>>> This seems to be the default when 'gpg' is installed. |
9 |
>> It's probably complaining if you're running as root |
10 |
>> and you've set the GPG home did to be in /home/purslow/.gnupg |
11 |
>> rather than /root/.gnupg (and owned by root:root). |
12 |
>> Otherwise try setting that directory to 0700 permission (u+rwx g-rwx o-rwx). |
13 |
> You're using a symmetric cipher, so the complaint is only a warning |
14 |
> about the ownership of the gnupg configuration file being used. |
15 |
> You may wish your root user to have different gnupg settings |
16 |
> than your plain user and gnupg is warning you about it. |
17 |
> However, this is rather odd. When you first use gnupg as any user |
18 |
> without specifying a configuration file, it will try to create a new |
19 |
> ~/.gnupg directory with default settings and public/private keys; e.g. |
20 |
> # gpg -c <some_file> |
21 |
> gpg: directory '/root/.gnupg' created |
22 |
> gpg: keybox '/root/.gnupg/pubring.kbx' created |
23 |
> Given the above the directory and files in /root/.gnupg |
24 |
> should be owned by root:root, rather than root:552 , |
25 |
> if '552' in your message is some group ID. |
26 |
|
27 |
No (smile) : '552' is the command-line number in the line spec. |
28 |
|
29 |
Thanks for both replies : I can now re-arrange things appropriately. |
30 |
|
31 |
-- |
32 |
========================,,============================================ |
33 |
SUPPORT ___________//___, Philip Webb |
34 |
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto |
35 |
TRANSIT `-O----------O---' purslowatchassdotutorontodotca |