LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   gpg: WARNING: unsafe permissions on configuration file `/home/b/.gnupg/options' gpg: (https://www.linuxquestions.org/questions/mandriva-30/gpg-warning-unsafe-permissions-on-configuration-file-%60-home-b-gnupg-options-gpg-752035/)

widda 09-02-2009 05:04 AM

gpg: WARNING: unsafe permissions on configuration file `/home/b/.gnupg/options' gpg:
 
I downloaded this program recently, but don't recall doing anything with it, like setting it up or anything, and if it was a tar or a bz, I may have opened it, thus spraying it to locations unknown.
Anyway, when I opened bash as root and entered file name, it said permission denied.
I don't know what to do.
While I'm here, why does filename imply that 'home' is above 'b', but when I enter Home from icon, 'b' is not WITHIN it, but a level UP?
I don't understand that.

widda 09-02-2009 06:36 AM

oh, and to be clear, that message appears on opening shell. the whole message is
gpg: WARNING: unsafe permissions on configuration file `/home/b/.gnupg/options'
gpg: WARNING: unsafe enclosing directory permissions on configuration file `/home/b/.gnupg/options'

ongte 09-02-2009 09:00 AM

Since b is your username, the directory /home/b is your "Home". Hence, Dolphin will say "Home" at the top. But it is actually /home/b. If you double click on the line that says "Home" it will show you that.
If you do up 1 level. You will be at /home where you will see b as a directory under it.

I think the permission & ownership of the directory '/home/b/.gnupg' and the file in it '/home/b/.gnupg/options' is messed up.

Open up Konsole. Run this command & post the output:
Code:

ls -la | grep .gnupg
Then we'll figure out how to fix it.

widda 09-04-2009 12:26 AM

Thanks ongte, here is output

drwxrwxr-x 3 e e 4096 2009-09-04 14:47 .gnupg/

And thanks for relieving my brain of the home/b paradox!

JulianTosh 09-04-2009 12:29 AM

yea, that's bad. if I'm reading that directory listing right, and the user name is 'b' then:

chmod 770 /home/b/.gnupg
chown b:b /home/b/.gnupg

ongte 09-04-2009 08:45 AM

According to my own Mandriva 2009.1, You have to make it a bit more secure so that Mandriva does not complain. It should be like this:
Code:

$ su
Password: <your root password>
# chmod 700 /home/b/.gnupg
# chown -R b:b /home/b/.gnupg
# cd /home/b/.gnupg
# chmod 600 *
# exit


JulianTosh 09-04-2009 08:47 AM

Yea... I certainly left some stuff out there...

Thanks!

ongte 09-04-2009 09:19 AM

Mandriva's security framework (msec) is rather particular about having secure file & directory permissions. It's good, but quite annoying as well. :P

widda 09-05-2009 09:37 AM

wow. what can I say. Thanks.

btechswamy 07-30-2018 07:49 AM

gpg: WARNING: unsafe ownership on configuration file `/home/ubuntu/.gnupg/gpg.conf'
gpg: no valid OpenPGP data found.
gpg: decrypt_message failed: eof

this is the error i am getting regularly for only one client.

please give me a solution , Thanks un advance.


All times are GMT -5. The time now is 02:50 PM.