tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: sh(1) and ksh(1) default PATH



On Thu, 18 Aug 2022, Hauke Fath wrote:

On Wed, 17 Aug 2022 21:56:02 +0000, David Holland wrote:
On Tue, Aug 16, 2022 at 08:59:13AM +0200, tlaronde%polynum.com@localhost wrote:
> But the argument "if something is modified, that"s the problem of the
> user" can be reversed: NetBSD provides utilities whose
> functionnalities it relies upon. So, by default, the system should use
> its utilities, the ones it has been tested with and expects. So base
> should always come first by default; [...]

Except that the whole reason for installing e.g. bind or sendmail from
pkgsrc is to replace the corresponding functionality in base.

Bad example -- neither will (have to) be in PATH. And sendmail is even
special-cased by mailer.conf.

Sorry for jumping in so late, but the original change seems bad in the
sense that I expect root to use a shell that's limited and doesn't
initially include all the extra paths and only use system-provided
paths. For me that was sh.

I suppose I can override the defaults for root but can't you just give a
regular user a different shell?

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE + BSChem + BAEnglish + MSCS + $2.50 = coffee


Home | Main Index | Thread Index | Old Index