LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 09-02-2009, 05:04 AM   #1
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Rep: Reputation: 31
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.
 
Old 09-02-2009, 06:36 AM   #2
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Original Poster
Rep: Reputation: 31
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'

Last edited by widda; 09-02-2009 at 06:37 AM. Reason: typo
 
Old 09-02-2009, 09:00 AM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
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.
 
Old 09-04-2009, 12:26 AM   #4
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Original Poster
Rep: Reputation: 31
Thumbs up

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!
 
Old 09-04-2009, 12:29 AM   #5
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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
 
Old 09-04-2009, 08:45 AM   #6
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
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
 
1 members found this post helpful.
Old 09-04-2009, 08:47 AM   #7
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
Yea... I certainly left some stuff out there...

Thanks!
 
Old 09-04-2009, 09:19 AM   #8
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mageia, CentOS, Ubuntu
Posts: 468

Rep: Reputation: 72
Mandriva's security framework (msec) is rather particular about having secure file & directory permissions. It's good, but quite annoying as well. :P
 
Old 09-05-2009, 09:37 AM   #9
widda
Member
 
Registered: Jun 2009
Location: Uluru
Distribution: Ubuntu 9.04
Posts: 167

Original Poster
Rep: Reputation: 31
wow. what can I say. Thanks.
 
Old 07-30-2018, 07:49 AM   #10
btechswamy
LQ Newbie
 
Registered: Jul 2018
Posts: 1

Rep: Reputation: Disabled
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gpg / gpg-agent -- Can't connect to /root/.gnupg/S.gpg-agent jrtayloriv Linux - Security 9 06-03-2019 10:06 AM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 09:37 AM
gpg: WARNING: unsafe ownership on configuration file mikieboy Mandriva 3 12-15-2008 07:04 PM
Help me to import a file in gpg Gins Linux - Software 8 10-13-2006 01:20 PM
multiple kernel, gpg-pubkey warning message dareino Fedora 3 07-26-2004 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration