🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Linux and Gnupg question

#325989
From: Yamn2 Remailer
Date: Mon, 29 Jul 2024 20:29
41 lines
1984 bytes
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!
Technical Details
Message-ID: <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!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!alphared!sewer!news.dizum.net!not-for-mail
References: <3e0ba7e95c2e8c32256c256583e042873bb45a1e@i2pn2.org>

Show Full Headers
Complete Article Headers
Message-ID: <20240729.212912.39eaff66@mixmin.net>
Subject: Re: Linux and Gnupg question
Date: Mon, 29 Jul 2024 21:29:12 +0100
From: Yamn2 Remailer <noreply@mixmin.net>
References: <3e0ba7e95c2e8c32256c256583e042873bb45a1e@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!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!alphared!sewer!news.dizum.net!not-for-mail
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 2001::1/128