LinuxQuestions.org
Review your favorite Linux distribution.
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 12-15-2008, 05:21 PM   #1
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Rep: Reputation: 33
gpg: WARNING: unsafe ownership on configuration file


Upon opening a console as root I get the following message:

Quote:
gpg: WARNING: unsafe ownership on configuration file '/home/myusername/.gnupg/gpg.conf'
The permissions for this file are set to:

Owner Read Write

Group Forbidden

Others Forbidden

My question is; why is this considered unsafe and what should the permissions for this file be?
 
Old 12-15-2008, 05:27 PM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
If I read your post correctly, gpg.conf is 0600 which should be fine. What are the permissions on your ~/.gnupg directory? Mine are set as follows:
Code:
$ ls -ld ~/.gnupg
drwx------ 2 steve steve 4096 2008-12-14 05:25 /home/steve/.gnupg
$ ls -l ~/.gnupg
total 44
-rw------- 1 steve steve 9029 2007-07-01 07:12 gpg.conf
-rw------- 1 steve steve 4298 2008-05-05 06:08 pubring.gpg
-rw------- 1 steve steve  600 2008-11-20 10:39 random_seed
-rw------- 1 steve steve 1975 2007-10-30 05:52 secring.gpg
-rw------- 1 steve steve 1280 2008-05-05 06:08 trustdb.gpg
 
Old 12-15-2008, 06:09 PM   #3
mikieboy
Member
 
Registered: Apr 2004
Location: Warrington, Cheshire, UK
Distribution: Linux Mint 19.1 Xfce
Posts: 555

Original Poster
Rep: Reputation: 33
Thanks for the reply Steve. Here's the code:

Quote:
~]$ ls -ld ~/.gnupg
drwx------ 2 mike mike 4096 2008-12-16 00:05 /home/mike/.gnupg/
ls -l ~/.gnupg
total 16
-rw------- 1 mike mike 9152 2008-11-07 20:10 gpg.conf
-rw------- 1 mike mike 0 2008-11-07 20:10 pubring.gpg
-rw------- 1 mike mike 0 2008-11-07 20:10 secring.gpg
-rw------- 1 mike mike 40 2008-11-07 20:10 trustdb.gpg
 
Old 12-15-2008, 07:04 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
Well, you can't get more restrictive without stopping your own access By any chance, were you running gpg as a different user (root, for example)? From what I could find on google, running as a different user is the most common cause of that message.
 
  


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
Sendmail config error: warning program unsafe Mariognarly Linux - Software 0 08-26-2008 04:10 PM
File Ownership chrisfirestar Linux - General 2 11-10-2005 04:41 AM
unsafe map file Tim Johnson Red Hat 2 10-20-2005 02:08 PM
multiple kernel, gpg-pubkey warning message dareino Fedora 3 07-26-2004 07:19 AM
CVS - file permissions and file ownership Osten Linux - Software 3 01-18-2004 04:08 PM

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

All times are GMT -5. The time now is 08:23 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
Open Source Consulting | Domain Registration