warning msg - what does it mean

Jérôme Blanc 02100874@brookes.ac.uk
Tue Dec 10 02:04:46 2002


Le Lundi 9 Décembre 2002 23:35, David Jourard a écrit :
> Hi,
>
> > > I get this message:
> > >
> > > gpg: WARNING: unsafe ownership on homedir "/home/gpg"
> > >
> > > where I keep my keyrings which I uploaded (pubring.gpg and
> > > trustdb.gpg) and maintained on my desktop
> > >
> > > Any ideas. If its nothing whats the parameter to turn off the
> > > warnings.
> >
> >Uh, I would guess it means that directory has unsafe ownership. What
> >does 'ls -l /home/gpg' give you?
>
> 775 owned by root and group root.
>
> I tried a stricter subset but it wouldn't work and perhaps its because =
the
> scripts are running suid.    The executable is 6755 where the permissio=
ns
> are setgid and setuid. Setting it to just setuid did not work.
>
> Any suggestions.  Thank-you
>
> Thanks
> David

As far as I can remember, there was here a reply not far away about the same
question. I will try to sum up what was said.

Basically, what you need is that your user name owns the folder gnupg and its
files. Secondly, the permissions set on it must be 700 on the folders and 600
on the files. You won't get that message any more.

And it is a lot safer that only your user can read these files rather than
everybody !

Jérôme