[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gnupg-users
Subject:    RE: gpg: WARNING: unsafe ownership on homedir
From:       <Ira.Kirschner () sungard ! com>
Date:       2013-06-05 0:24:39
Message-ID: 3773BDF471D15C4E96396A84BA00EF5626FFDDC6 () US-VOO-MB02 ! internal ! sungard ! corp
[Download RAW message or body]

Perfectly simple explanation of what I was doing wrong. Works fine now. Much \
appreciated.

-----Original Message-----
From: Gnupg-users [mailto:gnupg-users-bounces@gnupg.org] On Behalf Of Branko Majic
Sent: Tuesday, June 04, 2013 4:43 PM
To: gnupg-users@gnupg.org
Subject: Re: gpg: WARNING: unsafe ownership on homedir

On Tue, 4 Jun 2013 19:22:04 +0000
<Ira.Kirschner@sungard.com> wrote:

> I have researched this error message and have found the suggestions do not work. \
> Does anyone know how to have this warning message stop? 
> I am getting the message:   gpg: WARNING: unsafe ownership on homedir \
> `/home/wsc_gpg/.gnupg' 
> User wsc_gpg owns the gpg installation.
> The process is running from root as:
> sudo -u wsc_gpg cat /home/wsc_gpg/.gnupg/cache.txt | gpg --homedir \
> /home/wsc_gpg/.gnupg --batch --yes --no-mdc-warning --skip-verify --passphrase-fd 0 \
> --no-secmem-warning -o $OUTPUTFILE -d $ENCRYPTEDFILE

Ok, so the catch here is that the first command in the line is being
run as user wsc_gpg, but not the subsequent ones. You want want to put
a sudo -u wsc_gpg in front of the second gpg command in the pipeline as
well (otherwise it'll still run as root, and gpg will complain
about .gnupg directory not being owned by root).

Best regards

-- 
Branko Majic
Jabber: branko@majic.rs
Please use only Free formats when sending attachments to me.

Бранко Мајић
Џабер: branko@majic.rs
Молим вас да додатке шаљете искључиво у \
слободним форматима. \
_______________________________________________ Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic