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 - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-17-2016, 07:21 PM   #1
dubiousdebian
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Rep: Reputation: Disabled
GPG bug, can't get public key ++ SUDOER PROBLEM


From the question (solved)

--------------
GPG bug, can't get public key

I set up GPG on ubuntu using the tutorial from deepdotweb.com:

https://www.deepdotweb.com/2015/02/1...ide-pgp-linux/

However, when I run the command "sudo gpa" in the terminal the window opens but I get the following error message: "The GPGME library returned an unexpected error at keytable.c:150. The error was: unknown option."

Any way around this?
-----------------------
The above was solved through this link: http://crunchbang.org/forums/viewtopic.php?id=39712

------------------------

I run into the same problem, and I did the steps that solved the issue with the user above, except in my case, I cannot launch 'gpa' from the terminal...

I'm a noob at Linux and I've searched left and right for an answer...

When doing 'sudo' I get to type my user pwd... Once I do that, I get the followi ng message:

-----------------------------------------------------------------------------------
XXXXXXXX@magellan:~$ sudo gpa --disable-x509
[sudo] password for XXXXXXXX:
XXXXXXXX is not in the sudoers file. This incident will be reported.
XXXXXXXX@magellan:~$

-----------------------------------------------------------------------------------

I recall I've created or added XXXXXXXX(user) earlier to the sudoer files. It's possible I did a wrong operation...

Any idea?
Thank you
 
Old 01-20-2016, 12:08 PM   #2
Steven_G
Member
 
Registered: Dec 2015
Location: Western US
Distribution: Home spun
Posts: 142

Rep: Reputation: 67
How did you add XXXX to sudoers? Did you edit the file maually or did you use visudo?

Try
Code:
sudo visudo
Scroll to the bottom and add XXXX as the last entry (remove any previous entries there or elsewhere).

For "locked God mode" (do anything you want w/ sudo + password input) on a single user system make your permissions:

Code:
XXXX ALL=(ALL:ALL) ALL
(same as default root permissions)

Also, in more recent versions of Ubuntu you have to manually add yourself to your own group. I know this is retarded, but I didn't build it.

Code:
sudo usermod -a -G XXXX XXXX
(The syntax is important, caps/lower case matters, as do the switches themselves. This string adds you to an existing group w/o fouling up your permissions or the permissions of the group.)

And sometimes on UB, even after editing sudoers w/ visudo, I've still had to go back and manually add myself to the sudo group.

Code:
sudo usermod -a -G sudo XXXX
(The group is first, then the user name.)

Run the commands / procedures in the order given above, do not skip around the order or skip trying some b/c you "already did that" or "don't need that" and then after fixing your permissions try running:

Code:
sudo gpa --disable-x509
And it *should* work. If it fails report back w/ the error.

BTW, I did not follow / read your links and I have not played with gpg much in a long while and I have never played w/ the Gnu Privacy Assistant; but, what problem are you trying to resolve?

Whatever it is it's your system, do what you want. But if this is supposed to be privacy software then disabling its ability (or even worse if this switch disables the ability system wide) to interface w/ x509 and pull certificates seems like an exceptionally bad idea.

Do you even know what x509 is used for? x509
 
Old 01-24-2016, 07:42 AM   #3
dubiousdebian
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Steven_G View Post
BTW, I did not follow / read your links and I have not played with gpg much in a long while and I have never played w/ the Gnu Privacy Assistant; but, what problem are you trying to resolve?

Whatever it is it's your system, do what you want. But if this is supposed to be privacy software then disabling its ability (or even worse if this switch disables the ability system wide) to interface w/ x509 and pull certificates seems like an exceptionally bad idea.

Do you even know what x509 is used for? x509
Hi Steven,

First, thank you so much for your time...

I want to encrypt files on my computer, currently using Debian 8.* Jessie, and for that I was creating a pgp key... All was good with the terminal until I downloaded the software to create/store my key... For some reasons that I have yet to comprehend, I cannot seem to get it to "work" when I launch it, because it hangs... The disabling of x509 was explained as a solution in the links I've provided in my original post...

No, I do not understand the consequences of disabling x509.

-- Going with the first part of your response for now! Thank you,
 
Old 01-24-2016, 08:43 AM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,786

Rep: Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083Reputation: 2083
Quote:
Originally Posted by dubiousdebian View Post
I set up GPG on ubuntu using the tutorial from deepdotweb.com:

https://www.deepdotweb.com/2015/02/1...ide-pgp-linux/
Broken link, the "..." abbreviation seems to have gotten into the address itself.

Quote:
The above was solved through this link: http://crunchbang.org/forums/viewtopic.php?id=39712

------------------------

I run into the same problem, and I did the steps that solved the issue with the user above, except in my case, I cannot launch 'gpa' from the terminal...

I'm a noob at Linux and I've searched left and right for an answer...

When doing 'sudo' I get to type my user pwd... Once I do that, I get the followi ng message:
I don't see any mention of 'sudo' in that link, maybe try without sudo?
 
Old 01-24-2016, 11:07 AM   #5
Steven_G
Member
 
Registered: Dec 2015
Location: Western US
Distribution: Home spun
Posts: 142

Rep: Reputation: 67
Quote:
Originally Posted by dubiousdebian View Post
Hi Steven,

First, thank you so much for your time...

I want to encrypt files on my computer, currently using Debian 8.* Jessie, and for that I was creating a pgp key... All was good with the terminal until I downloaded the software to create/store my key... For some reasons that I have yet to comprehend, I cannot seem to get it to "work" when I launch it, because it hangs... The disabling of x509 was explained as a solution in the links I've provided in my original post...

No, I do not understand the consequences of disabling x509.

-- Going with the first part of your response for now! Thank you,
I'll tell you now that pgp is pretty good for what it does. But it is a major headache to get working correctly, even when you're experience with computers.

Are you trying to encrypt files locally? If so I'd look at veracrypt. It's what I use.

If you're looking to communicate securely I actually advise one of the many commercial solutions. Not only is it a major PITA to get pgp right on your end, but most of the time you end up having to help the other person get it set up on their end.

There are services / products that will make pgp set up pretty painless on both ends. (Google is your friend.)

Personally I feel it's worth ~$60(US) a year to have someone do it all for me. But, then again, I'm not guarding any state secrets if they didn't do it right or left a back door for the NSA.

Plus, end to end encrypted chat is point and click now days. Back in the day, if I had to send somebody something private, I'd just use an encrypted self extracting cab file as an attachment and give them the password over the phone.

There are lots of ways to skin this cat that are not as much a PITA as pgp.
 
  


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
[SOLVED] GPG bug, can't get public key remn Linux - Security 4 06-29-2015 10:39 PM
gpg: public key not found verbose Linux - Newbie 4 12-31-2009 03:00 PM
Revoking GPG key with only passphrase and public key djib Linux - Security 2 03-13-2007 03:20 AM
Problem importing Mandrake Cooker public GPG key hazza Mandriva 2 07-26-2004 05:38 AM
GPG Data, Secret Key but no Public Key? Aeiri Linux - Software 5 07-20-2004 06:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 10:50 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