[Tfug] net
Glen Pfeiffer
glen at thepfeiffers.net
Thu May 15 17:37:34 MST 2008
On Wed May 14, 2008 at 09:07:45PM -0700, Rich wrote:
> On May 13, 2008, at 9:00 pm, Glen Pfeiffer wrote:
> > The reason I assumed the command was root only, is that it
> > worked as root and not as a non-root user, so I figured it
> > correctly removed from the non-root user path.
> Well, now I guess you know /sbin contains commands that can do read-
> only things as a non-root user.
I was not aware of that. Thanks, I am sure that will be useful to
know.
> > Sure it may be silly to you, but it is a reasonable assumption.
> Well "silly" is subjective. We try stuff out ... right?
>
> Do you think it's silly to say this?
It's definitely not silly to try things out. That's how I learn
most things.
> > > And then there's the maxim: Never run as root commands
> > > which can be run as a regular user.
>
> > Errrr....thanks? I am not the OP, nor do I need the script.
>
> No, but check the address I mailed it to. You and *billions* of
> others! :-P
Point taken.
> > Additionally, I do my part to try to help others but I don't ask
> > for praise and thanks.
> Hey, yeah. I was being unnecessarily snarky with "You're welcome".
> Sorry. But it *was* in response to your "Too much work". Thanks for
> recognizing that it *does* take work though...
I work as an application programmer so I definitely recognize the
work that goes into helping others. I should have let the
"snarkiness" slide.
> > Forgive me if I am misunderstanding, but I am a bit
> > inebriated. In this case I don't see what's so hard about
> > parsing the ifconfig output in your head.
> I dunno, I like a challenge. And often these things prove useful;
> usually in another script.
And that's a valid enough reason to write a script; for the
challenge. If I needed to use the output in a script/program, I
would do what you did too.
Thanks again for the information.
--
Glen
More information about the tfug
mailing list