Permissions Warning

Dave Barton bmcs@myrealbox.com
Sun Dec 8 23:24:02 2002


--=-sVLE45/7s5iw78XWTXPZ
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Mon, 2002-12-09 at 08:38, Michael Nahrath wrote:
> Dave Barton <bmcs@myrealbox.com> schrieb am 2002-12-08 22:19 Uhr:
>=20
> > GPG is working well for me, but I always get the following warning:
> >=20
> > gpg: WARNING: unsafe permissions on configuration file
> > "/home/dave/.gnupg/options"
> > gpg: WARNING: unsafe enclosing directory permissions on configuration f=
ile
> >=20
> > Obviously, my permissions are not set exclusively to root
>=20
> They should not. They should be set exclusively to _you_.
>=20
> > and I am definitely not going to run gpg as root.
>=20
> You're right!
> =20
> > Could someone please explain:
> >=20
> > a) How do I switch this warning off ?
>=20
> Correct the permissions for the file and the directory:
>=20
> chmod 600 /home/dave/.gnupg/options
> chmod 700 /home/dave/.gnupg/
>=20
> > b) Why does gpg expect files in a user's home directory to be for the
> > exclusive use of root ?
>=20
> It expects them to for the exclusive use of theit owner.
>=20
> They should be like this (if you are "user"):
>=20
> [user@host]~$ ls -al .gnupg/
> drwx------  12 user     staff         408 Dec  8 22:25 ./
> [...]
> -rw-------   1 user     staff        4776 Dec  8 20:40 options
>=20
> Exclusive to root would mean (you don't want this):
>=20
> [user@host]~$ ls -al .gnupg/
> d---------  12 user     staff         408 Dec  8 22:25 ./
> [...]
> ----------   1 user     staff        4776 Dec  8 20:40 options
>=20
> Greeting, Michi

Thanks Michi, that's exactly what I needed.

Regards
Dave
--=20
Registered Linux User #288562 http://counter.li.org

--=-sVLE45/7s5iw78XWTXPZ
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQA988banA0lCZq/bxQRAlv6AKCw5ng/tYaLeSLLCq1ZPaug1o1+PwCfdV9q
zOkQzFrIS7DToBS8jtZYFtM=
=P579
-----END PGP SIGNATURE-----

--=-sVLE45/7s5iw78XWTXPZ--