[Info-vax] CLI editing, was: Re: VMS - Virtual Terminals - A security risk way back yonder OR was that an Old Wives Tale ?
David Froble
davef at tsoft-inc.com
Sun Feb 14 22:28:45 EST 2016
Johnny Billquist wrote:
> On 2016-02-14 22:11, Steven Schweda wrote:
>>> I haven't seen HP-UX live in about 15 years...
>>
>> Which says what, exactly, about your UNIX expertise?
>
> I have no idea. You tell me.
>
>>> /sbin would be a very strange place to put any shells, or
>>> commonly used binaries. It's mostly a place where you would
>>> place system binaries that would be needed for standalone
>>> use, which are not commonly used by normal users. [...]
>>
>> Actually, it would be a reasonable place to put the
>> statically linked executables, like the "sh" normally used by
>> "root", because that "sh" can work before /usr (with its
>> shared libraries) is mounted.
>
> It is actually a very unreasonable place for sh. /sbin should not be
> read as a place for statically linked binaries, but a place for binaries
> that are needed for systems work, but not binaries a normal user would
> need, and binaries that are needed before you mount anything.
>
> Shells do not belong there, and in the specific case of sh, it is a more
> or less very established standard that it should be in /bin, and lots of
> scripts depend on it, having #!/bin/sh as the first line in the scripts.
>
> If you were to move sh to /sbin, your system would mostly start failing,
> I can promise you. But feel free and go ahead and test it.
>
> Next I'll guess we'll be discussing the difference between /usr/bin and
> /usr/sbin as well. And then all the different ideas what should be in
> /lib, /usr/lib, if you should have a /usr/libexec, if you should have
> binaries in /etc, what /use/local should be used for, and all the other
> places that are confusingly used by different systems.
>
>>> [...] But Unix-like systems have such varied and confusing
>>> directory structures...
>>
>> Some of use may be easier to confuse than others.
>
> Well, if you know, how about you enlighten us?
>
>> A Web search for keywords like, say:
>> hp-ux root shell
>> might be a better way to invest some time than expounding
>> here about what's true about UNIX (and its friends).
>
> Oh gee... As if I didn't say that every flavor has its own ideas on how
> to do things... Are you now saying that I'm claiming that Unix should be
> a specific way?
>
> I'm surprised that you want to fight with me about it.
> Why do you want to pick a fight with me?
>
> Johnny
>
Better idea, quit talking about *ix.
More information about the Info-vax
mailing list