LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 06: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, 07: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 07:37 AM. Reason: typo
 
Old 09-02-2009, 10:00 AM   #3
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
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, 01: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, 01: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, 09:45 AM   #6
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
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, 09: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, 10:19 AM   #8
ongte
Member
 
Registered: Jun 2009
Location: Penang, Malaysia
Distribution: Mandriva, CentOS, Ubuntu
Posts: 456

Rep: Reputation: 69
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, 10: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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 6 07-16-2014 02:26 PM
GPG: Bad session key gpg between gpg on linux and gpg gui on windows XP konqi Linux - Software 1 07-21-2009 10:37 AM
gpg: WARNING: unsafe ownership on configuration file mikieboy Mandriva 3 12-15-2008 08:04 PM
Help me to import a file in gpg Gins Linux - Software 8 10-13-2006 02:20 PM
multiple kernel, gpg-pubkey warning message dareino Fedora 3 07-26-2004 08:19 AM


All times are GMT -5. The time now is 04:36 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration