BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Subject: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- Date: Thu, 22 Jun 2023 17:23:38 -0500
- In-reply-to: <20230622172659.0000246c.Richard.Pieri@gmail.com>
- References: <20230621163508.GJ24375@bladeshadow.org> <CAJFsZ=ozzcstj4NMy5Mzsbuzmxhd6bkFBMwte-QMQm9dYDj9sQ@mail.gmail.com> <20230621232655.jkt5rsxybsofpy7x@randomstring.org> <20230621194331.00005d05.Richard.Pieri@gmail.com> <20230622200719.GN24375@bladeshadow.org> <20230622172659.0000246c.Richard.Pieri@gmail.com>
On Thu, Jun 22, 2023 at 05:26:59PM -0400, Rich Pieri wrote: > On Thu, 22 Jun 2023 15:07:19 -0500 > Derek Martin <invalid at pizzashack.org> wrote: > > > 1. As I indicated in the other message, if the program is intended to > > run exclusively in the security context of the user running it, and > > does not at any point require elevated privileges (which needs to > > be evaluated carefully), then using /usr/bin/env is PROBABLY fine, > > particularly if you wrote it and know what it does. > > You list [four] "ifs" around using env. Yes, and I also said avoid doing that if you have workable alternatives. > Explicit path to /usr/bin/perl or whatever has zero "ifs". No it doesn't. If your perl isn't in /usr/bin, or if your tools have to support different platforms/environments that have it installed in different places, that simply doesn't work. I've made that point repeatedly now. I'll repeat myself some more now: The easiest solution to those problems is to either (re)install it in /usr/bin or symlink it. But if you're not the admin in your environment and yours stubbornly refuses to do that for whatever reason, you are SoL. You'll probably have no choice but to use env, or I s'pose maybe create multiple copies... in which case they'll either need different names or be installed in different places. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
- Follow-Ups:
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- References:
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: bogstad at pobox.com (Bill Bogstad)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: dsr at randomstring.org (Dan Ritter)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- From: richard.pieri at gmail.com (Rich Pieri)
- [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Prev by Date: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Next by Date: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Previous by thread: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Next by thread: [Discuss] Program path maintenance and security (was Re: Debian 12 vs. WSL 1)
- Index(es):