🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #325990

Re: Linux and Gnupg question

#325990
From: Stefan Claas
Date: Mon, 29 Jul 2024 21:21
51 lines
3027 bytes
Yamn2 Remailer wrote:
> Yamn2 Remailer wrote:
> > > 
> > > I need some advice regarding Gnupg configuration.
> > > 
> > > I run some services on a remote virtual server (Debian 11).
> > > 
> > > I have a user, alice, who needs to run a program that requires gnupg v.1
> > > For alice I compiled a gnupg1 binary that lives at /usr/local/bin/gpg
> > > 
> > > I have users root and bob that require gnupg2. Their gpg binary lives
> > > at /usr/bin/gpg
> > > 
> > > But when root or bob try to use the gpg program (either via a script or
> > > directly via command line commands) the wrong binary gets invoked.
> > > The one at /usr/local/bin/gpg
> > > 
> > > How can I fix this behavior?
>  
> > How about renaming the GnuPG v1 binary to gpg1?
>  
> That didn't completely work. But I found a solution that did.
> 
> For users root and bob I added this to their .profile file.
> 
> export PATH=/usr/bin:$PATH
> 
> This puts the path for /usr/bin/gpg as the first path, forcing
> gpg2 binary to be discovered in /usr/bin where it lives.
> 
> Now I have it working!
> 
> root@debian:~$ which gpg
> /usr/bin/gpg
> 
> bob@debian:~$ which gpg
> /usr/bin/gpg
> 
> alice@debian:~$ which gpg
> /usr/local/bin/gpg
> 
> Thanks!
 
Great that you have a solution now! I mentioned this only because
it was long ago a standard procedure when installing v1 and v2 on
the same machine. IIRC v1 is also used for decrypting / verifing
old PGP 2.6 messages, which newer versions no longer support.

-- 
Regards
Stefan
Technical Details
Message-ID: <242df3e6b855f53849aab454c36e7f94ccdcffe6@i2pn2.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!i2pn.org!i2pn2.org!.POSTED!not-for-mail
References: <3e0ba7e95c2e8c32256c256583e042873bb45a1e@i2pn2.org> <20240729.212912.39eaff66@mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <242df3e6b855f53849aab454c36e7f94ccdcffe6@i2pn2.org>
Subject: Re: Linux and Gnupg question
Date: Mon, 29 Jul 2024 21:21:07 -0000
From: Stefan Claas <pollux@tilde.club>
References: <3e0ba7e95c2e8c32256c256583e042873bb45a1e@i2pn2.org> <20240729.212912.39eaff66@mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!apf8.newsdeef.eu!nnrp.usenet.blueworldhosting.com!!spool1.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!i2pn.org!i2pn2.org!.POSTED!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: ℭ𝔥𝔦𝔣𝔣𝔯𝔢𝔭𝔲𝔫𝔨𝔰
MIME-Version: 1.0
Injection-Date: Mon, 29 Jul 2024 21:21:08 -0000 (UTC)
Injection-Info: i2pn2.org;
 logging-data="803967"; mail-complaints-to="usenet@i2pn2.org";
 posting-account="ieSrCjSDShpZNyqIW52mlwIkg76Hsp+TOOO6KTdfCN8";
User-Agent: flnews/1.3.0pre8 (for GNU/Linux)
X-Finger: tilde.club/~pollux/
X-Ed25519-Sig: 38f3602992026c63dcfe29ad9de9bdc0d8b87ae85921b4dd2c97b21c46389424
 6510c170109597489b5348e8dc3158fb1a2befd2c95d1c0b573e263aeacefd0c
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Date: It's Mon 11290 Sep 1993 11:21:07 PM CEST, the September that never ends
X-Ed25519-Pub: c0ffee5a36e581eb10f60b2831b3cdb955d2e7ef680dd282a8d43ad8b84b357a