Thread View: alt.privacy.anon-server
4 messages
4 total messages
Started by Yamn2 Remailer
Mon, 29 Jul 2024 16:49
Linux and Gnupg question
Author: Yamn2 Remailer
Date: Mon, 29 Jul 2024 16:49
Date: Mon, 29 Jul 2024 16:49
16 lines
1337 bytes
1337 bytes
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?
Re: Linux and Gnupg question
Author: Stefan Claas
Date: Mon, 29 Jul 2024 17:02
Date: Mon, 29 Jul 2024 17:02
25 lines
2124 bytes
2124 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? -- Regards Stefan
Re: Linux and Gnupg question
Author: Yamn2 Remailer
Date: Mon, 29 Jul 2024 20:29
Date: Mon, 29 Jul 2024 20:29
41 lines
1984 bytes
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!
Re: Linux and Gnupg question
Author: Stefan Claas
Date: Mon, 29 Jul 2024 21:21
Date: Mon, 29 Jul 2024 21:21
51 lines
3027 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads