🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #623821

Re: First use of /sbin in Unix?

#623821
From: ma...
Date: Sat, 09 Jun 2018 09:41
61 lines
3826 bytes
On 2018-06-09, Jorgen Grahn <grahn...@snipabacken.se> wrote:
> On Thu, 2018-06-07, Grant Taylor wrote:
>> On 06/07/2018 06:18 AM, Jorgen Grahn wrote:
>>> seems to me overriding a standard utility would almost always be the 
>>> wrong solution to a problem.
>>
>> Maybe, maybe not.
>>
>> Keep in mind, I'm only superseding / augmenting system commands that I 
>> want to run differently than they do by default.
>>
>> I have ~/bin first in my path.  I have a number of utilities that 
>> require root permission (gained via sudo) that I run ALL THE TIME (as in 
>> daily, some many times a day).
>>
>> So I have a wrapper [1] that I put in ~/bin for things like ip, netstat, 
>> ifconfig, route, etc so that I can type commands into my unprivileged 
>> user's shell exactly the same way that I would type them in root's shell.
>
> Most of those don't need root privileges for reading (although some
> Linux distributions annoyingly put them in /sbin and don't put /sbin
> in $PATH for normal users).  I think it's useful to have them
> available and to know you cannot break anything unless you
> specifically choose to.
>
>> I don't have to worry about needing to prefix commands with sudo (et al) 
>> or not.
>> I don't have to worry about using different formats of commands in 
>> different contexts.
>> I don't have to worry about escaping special characters to make it 
>> through sudo.
>> Etc.
>
> I'd worry about scripts picking up the wrong copy of ip, netstat and
> friends, and run stuff as root (and log a sudo use) when they really
> just want read access.
>
>> I personally consider removing all the above mental load and making the 
>> computer do what I want to be a good thing.  Thus I consider it to be 
>> the proper solution.
>
> My time to stick my neck out:
>
> I don't like sudo.  I'd much rather su to root in a separate shell,
> and carefully do my privileged work there, then log out when I'm done.
> I don't want dangerous command lines to end up in my shell history,
> where I can by accident execute them again and (if I ran sudo
> recently) have them execute without warning.
>
> Sudo blurs the distinction between me and the root user, it seems to
> me.
>
> That way I also don't have to understand the sudo config files.
>
>
+++


-- 
greymaus.ireland.ie
Just_Another_Grumpy_Old_Man
Technical Details
Message-ID: <slrnphn4le.2qc.mausg@smaus.org>
Path: mbox-mo1.pugleaf.net!n13-v6ni9592wmc.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <pf6emc$3h2$1@dont-email.me> <ZzzRC.190248$T14.113297@fx44.iad> <pf7ieq$40p$1@tncsrv09.home.tnetconsulting.net> <20180606103538.7eddd3774f5429f1abd54fc6@eircom.net> <XnsA8F990C4CB379admin127001@85.214.115.223> <pf8vvb$oko$1@tncsrv09.home.tnetconsulting.net> <slrnphgdv7.31ka.grahn+nntp@frailea.sa.invalid> <sfXRC.288871$yc1.96733@fx40.iad> <slrnphi8k3.31ka.grahn+nntp@frailea.sa.invalid> <pfbuep$lb$1@tncsrv09.home.tnetconsulting.net> <slrnphn6rh.31ka.grahn+nntp@frailea.sa.invalid>

Show Full Headers
Complete Article Headers
X-Received: by 2002:a1c:168d:: with SMTP id 135-v6mr910084wmw.1.1528537281078;        Sat, 09 Jun 2018 02:41:21 -0700 (PDT)
X-BeenThere: alt.folklore.computers@googlegroups.com
Received: by 2002:a1c:99d5:: with SMTP id b204-v6ls759337wme.6.canary-gmail; Sat, 09 Jun 2018 02:41:20 -0700 (PDT)
X-Received: by 2002:a1c:483:: with SMTP id 125-v6mr849851wme.21.1528537280350;        Sat, 09 Jun 2018 02:41:20 -0700 (PDT)
MIME-Version: 1.0
Path: mbox-mo1.pugleaf.net!n13-v6ni9592wmc.0!nntp.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: ma...@mail.com
Newsgroups: alt.folklore.computers
Subject: Re: First use of /sbin in Unix?
Date: 9 Jun 2018 09:41:18 GMT
Lines: 61
Message-ID: <slrnphn4le.2qc.mausg@smaus.org>
References: <pf6emc$3h2$1@dont-email.me> <ZzzRC.190248$T14.113297@fx44.iad> <pf7ieq$40p$1@tncsrv09.home.tnetconsulting.net> <20180606103538.7eddd3774f5429f1abd54fc6@eircom.net> <XnsA8F990C4CB379admin127001@85.214.115.223> <pf8vvb$oko$1@tncsrv09.home.tnetconsulting.net> <slrnphgdv7.31ka.grahn+nntp@frailea.sa.invalid> <sfXRC.288871$yc1.96733@fx40.iad> <slrnphi8k3.31ka.grahn+nntp@frailea.sa.invalid> <pfbuep$lb$1@tncsrv09.home.tnetconsulting.net> <slrnphn6rh.31ka.grahn+nntp@frailea.sa.invalid>
X-Trace: individual.net c4O7RselE6GT/z+9JEJJFABIHVf65Aow/QFfyWBeH5e5w6DDgI
Cancel-Lock: sha1:iRPUQJf0vK4zajmdS8SbLLkqdwQ=
User-Agent: slrn/1.0.2 (Linux)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit