Results 1 to 10 of 10

Thread: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

  1. #1
    Join Date
    Sep 2012
    Beans
    9

    Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    Hi all. Let me start by saying, since i found Ubuntu Studio i think i like it better than windows..

    Anyways, trying to get all my essentials in. I found a program called Kgpg in the studio market as well as kleopatra. I managed to install my old keys and unencrypt an email from a few weeks back ive been waiting to unencrypt. It seemed the program worked the first start, but after reseting my computer and attempting to reload Kgpg again i get the following error

    " GnuPG failed to start.
    You must fix the GnuPG error first before running KGpg.


    gpg: WARNING: unsafe permissions on configuration file `/home/falcor/.gnupg/gpg.conf'
    gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/falcor/.gnupg/gpg.conf'"


    my computers name is Falcor..


    Please how to fix? Only other option i can think of is to run windows in a virtual box so i can use the winpt i used to use, but rather not do this. Any advise would be appreciated. Thanks
    Last edited by losfalcor; September 28th, 2012 at 06:18 AM.

  2. #2

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    terminal>
    Code:
    chmod 600 .gnupg -R
    Windows assumes the user is an idiot.
    Linux demands proof.

  3. #3
    Join Date
    Sep 2012
    Beans
    9

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    Thanks for the reply. When i type that into the terminal i get

    "
    chmod: cannot access `.gnupg/pubring.gpg~': Permission denied
    chmod: cannot access `.gnupg/Fal.revoke': Permission denied
    chmod: cannot access `.gnupg/random_seed': Permission denied
    chmod: cannot access `.gnupg/pubring.kbx': Permission denied
    chmod: cannot access `.gnupg/private-keys-v1.d': Permission denied
    chmod: cannot access `.gnupg/trustdb.gpg': Permission denied
    chmod: cannot access `.gnupg/pubring.gpg': Permission denied
    chmod: cannot access `.gnupg/gpg.conf': Permission denied
    chmod: cannot access `.gnupg/pubring.kbx~': Permission denied
    chmod: cannot access `.gnupg/secring.gpg': Permission denied

    "


    i dont understand. Everything worked fine the first time. Current;y im using kleopatra
    and i have set up winpt in windows 7 in a virtualbox, but is very inconvenient

  4. #4

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    terminal >
    Code:
    ls -ld .gnupg
    output please.
    Windows assumes the user is an idiot.
    Linux demands proof.

  5. #5
    Join Date
    Sep 2012
    Beans
    9

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    i typed in the terminal " sudo kernel.shmmax = 128000000 " to fix a problem with avast, now the only error i get with kgpg is

    " gpg: option file `/home/falcor/.gnupg/gpg.conf': Permission denied "



    Quote Originally Posted by Habitual View Post
    terminal >
    Code:
    ls -ld .gnupg
    output please.
    I get this


    drw------- 3 falcor falcor 4096 Sep 29 07:08 .gnupg

  6. #6

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    Well, that says you own the directory, now let's look inside it with:
    Code:
    ls -al .gnupg
    output please.
    Windows assumes the user is an idiot.
    Linux demands proof.

  7. #7
    Join Date
    Sep 2012
    Beans
    9

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    i get the following

    "
    ls: cannot access .gnupg/pubring.gpg~: Permission denied
    ls: cannot access .gnupg/Fal.revoke: Permission denied
    ls: cannot access .gnupg/random_seed: Permission denied
    ls: cannot access .gnupg/.: Permission denied
    ls: cannot access .gnupg/pubring.kbx: Permission denied
    ls: cannot access .gnupg/private-keys-v1.d: Permission denied
    ls: cannot access .gnupg/trustdb.gpg: Permission denied
    ls: cannot access .gnupg/..: Permission denied
    ls: cannot access .gnupg/pubring.gpg: Permission denied
    ls: cannot access .gnupg/gpg.conf: Permission denied
    ls: cannot access .gnupg/pubring.kbx~: Permission denied
    ls: cannot access .gnupg/secring.gpg: Permission denied
    total 0
    d????????? ? ? ? ? ? .
    d????????? ? ? ? ? ? ..
    -????????? ? ? ? ? ? Fal.revoke
    -????????? ? ? ? ? ? gpg.conf
    d????????? ? ? ? ? ? private-keys-v1.d
    -????????? ? ? ? ? ? pubring.gpg
    -????????? ? ? ? ? ? pubring.gpg~
    -????????? ? ? ? ? ? pubring.kbx
    -????????? ? ? ? ? ? pubring.kbx~
    -????????? ? ? ? ? ? random_seed
    -????????? ? ? ? ? ? secring.gpg
    -????????? ? ? ? ? ? trustdb.gpg
    "

  8. #8

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    try terminal >
    Code:
    sudo chown falcor:falcor /home/falcor/.gnupg/* -R
    You have a backup of that directory?

    Also please use code tags for command/script output (as attached).

    Thanks!
    Attached Images Attached Images
    Last edited by Habitual; October 2nd, 2012 at 08:20 PM.
    Windows assumes the user is an idiot.
    Linux demands proof.

  9. #9
    Join Date
    Sep 2012
    Beans
    9

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    I dont think i have a backup of that directory. I typed in the terminal the code you specified and still reading ' p, li { white-space: pre-wrap; } gpg: option file `/home/falcor/.gnupg/gpg.conf': Permission denied'

  10. #10

    Re: Kgpg error "gpg: WARNING: unsafe permissions on configuration file"

    You may have lost it and the keys it contained, but you could try to force a fsck with
    Code:
    shutdown -rF now
    at the next opportunity to reboot.
    Last edited by Habitual; October 4th, 2012 at 03:36 AM.
    Windows assumes the user is an idiot.
    Linux demands proof.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •