Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #64445 > unrolled thread

How to allow execution of a script requiring root privileges?

Started byBengt T <bengt_tornqvist@hotmail.com>
First post2020-04-08 10:02 -0700
Last post2020-04-09 22:58 -0700
Articles 20 on this page of 47 — 16 participants

Back to article view | Back to alt.os.linux


Contents

  How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 10:02 -0700
    Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-08 19:20 +0200
      Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 19:54 +0200
        Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 19:58 +0200
          Re: How to allow execution of a script requiring root privileges? Soviet_Mario <SovietMario@CCCP.MIR> - 2020-04-08 21:30 +0200
            Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-08 21:35 +0200
              Re: How to allow execution of a script requiring root privileges? Soviet_Mario <SovietMario@CCCP.MIR> - 2020-04-09 16:03 +0200
    Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 13:00 -0500
      Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-08 20:13 +0200
        Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-08 20:27 +0200
        Re: How to allow execution of a script requiring root privileges? Richard Kettlewell <invalid@invalid.invalid> - 2020-04-09 09:20 +0100
          Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 11:46 +0200
      Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 12:23 -0700
        Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 19:36 -0500
      Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-08 12:25 -0700
        Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 19:29 -0400
    Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 21:32 +0000
      Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 21:47 +0000
        Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 17:00 -0500
          Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:15 +0000
            Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 19:05 -0500
              Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-09 00:12 +0000
                Re: How to allow execution of a script requiring root privileges? Wildman <best_lay@yahoo.com> - 2020-04-08 21:03 -0500
              Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-09 13:50 +0200
                Re: How to allow execution of a script requiring root privileges? Melzzzzz <Melzzzzz@zzzzz.com> - 2020-04-09 14:29 +0000
                  [OT] Re: How to allow execution of a script requiring root privileges? Bit Twister <BitTwister@mouse-potato.com> - 2020-04-09 10:19 -0500
        Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 22:10 +0000
          Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:20 +0000
            Re: How to allow execution of a script requiring root privileges? F Russell <fr@random.info> - 2020-04-08 22:37 +0000
              Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 22:56 +0000
            Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 19:33 -0400
              Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-08 23:50 +0000
                Re: How to allow execution of a script requiring root privileges? "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2020-04-08 21:23 -0400
                  Re: How to allow execution of a script requiring root privileges? mGhost <mGhost@mouse-potato.com> - 2020-04-09 02:45 +0000
                Re: How to allow execution of a script requiring root privileges? Bit Twister <BitTwister@mouse-potato.com> - 2020-04-08 23:29 -0500
                Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 07:33 +0100
                Re: How to allow execution of a script requiring root privileges? "Carlos E.R." <robin_listas@es.invalid> - 2020-04-09 13:47 +0200
          Re: How to allow execution of a script requiring root privileges? Aragorn <thorongil@telenet.be> - 2020-04-09 10:20 +0200
            Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 11:15 +0100
      Re: How to allow execution of a script requiring root privileges? Ned Latham <nedlatham@woden.valhalla.oz> - 2020-04-08 19:39 -0500
        Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 09:30 +0200
      Re: How to allow execution of a script requiring root privileges? "J.O. Aho" <user@example.net> - 2020-04-09 09:28 +0200
        Re: How to allow execution of a script requiring root privileges? Martyn Barclay <mby@dev.null> - 2020-04-09 11:01 +0100
    Re: How to allow execution of a script requiring root privileges? Jasen Betts <jasen@xnet.co.nz> - 2020-04-09 11:06 +0000
    Re: How to allow execution of a script requiring root privileges? Allodoxaphobia <trepidation@example.net> - 2020-04-09 17:00 +0000
      Re: How to allow execution of a script requiring root privileges? Allodoxaphobia <trepidation@example.net> - 2020-04-10 17:42 +0000
    Re: How to allow execution of a script requiring root privileges? Bengt T <bengt_tornqvist@hotmail.com> - 2020-04-09 22:58 -0700

Page 2 of 3 — ← Prev page 1 [2] 3  Next page →


#64467

FromWildman <best_lay@yahoo.com>
Date2020-04-08 19:05 -0500
Message-ID<t7OdndU-zINL-xPDnZ2dnUU7-VWdnZ2d@giganews.com>
In reply to#64460
On Wed, 08 Apr 2020 22:15:48 +0000, mGhost wrote:

> On 2020-04-08, Wildman <best_lay@yahoo.com> wrote:
>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>>
>>> On 2020-04-08, F Russell <fr@random.info> wrote:
>>>> On Wed, 08 Apr 2020 10:02:47 -0700, Bengt T wrote:
>>>>
>>>>> In my backup script, using rsync, some directories/files will not be processed
>>>>> because they are only accessible by root. My way around this is to use "sudo
>>>>>
>>>>
>>>> Your "way around" should be to boot up as the root user and
>>>> stay as the root user.
>>>>
>>>> For the single-user workstation this is the ONLY way.
>>>>
>>>> I still hear moans and groans about running as root but
>>>> all of that security nonsense is just that: nonsense.
>>>> They can always spout off with generalities but they
>>>> can never provide specific examples about how a single-user
>>>> workstation can be compromised by running as root.
>>>>
>>> 
>>> Sure, the idea is that someone might craft a link which floods a buffer
>>> in such a way that the code they want to execute is sitting somewhere in
>>> memory where there exploit executes it. Without a privileged account,
>>> that execution would fail. With a root level user running, it executes
>>> and opens Pandora's box. 
>>> 
>>> You don't want to be the unknowing victim of some clever attacks where
>>> by you make their job even easier. It doesn't take much to open a port
>>> on your machine, to a command and control service if your own system
>>> doesn't even stop ask you if it should, which it won't if you're already
>>> root and as root, you interact with their exploit. 
>>> 
>>> What if I write a simple script, which looks normal to you, but the
>>> script loads more instructions from the web, which you don't see. It's
>>> not in the script you see, except for loading of it. You run it, and as
>>> root, I tell your system download an execute a cron job headlessly. And
>>> every 10 minutes you're machine asks my machine what I want it to do on
>>> my behalf. Not too fun. I could setup accounts, take screen shots, raid
>>> your files and upload them to me, grab you email, decrypt your encrypted
>>> files, encrypt your drive, and do pretty much anything I want. I'm root.
>>
>> Would not the person writting the script haved to be a
>> complete idiot?  You create a script that opens a port
>> on the internet without you knowing it?  Nonsense.
>>
> Let me be more clear. Say I KNOW you like to run as root all the time.
> And one day in conversation you ask for a script that does a certain
> thing. So I write it, and send it to you. It does what you asked, and a
> little more for me.
> 
> Because you are root, it just obeys what I wrote without question or
> prompt. That's very dangerous. 
> 
> Here's another one. 
> 
> I make a link, and it is super long. I know specifically how many
> characters it will take to overflow a buffer, and what comes after that
> sits in your memory. That extra payload is now in your memory waiting to
> be executed. Maybe I make an okay button, which you click on, which is
> actually the execution of that memory. Again, you're root. So nothing
> stops and asks for permission. It just does what I said. It just
> executes the code in the memory location I specified. Again, I have
> compromised your system. 
> 
> With you running as root, it just obeys me. With you not running as
> root, I request to run something which requires root is met with a
> prompt asking you for permission or just failing to execute at all.
> Either way, you have a chance. 
> 
> You're just making it easier to be taken over. Normally I'd need some
> method of escalating my privilege. Here, I'd need not bother. 
> 
> See? Not nonsense at all. Running as root all the time is not smart.

You keep moving the goal post.  No one said anything about
running as root all the time.  This thread was about running
a single script as root without sudo.  Someone would have to
be a complete idiot to run their system as root.  We are Linux
users, not Windows.  Buy yourself an umbrella Chicken Little.

-- 
<Wildman> GNU/Linux user #557453
"It is by will alone I set my mind in motion. It is by the juice of
sapho that thoughts acquire speed, the lips acquire stains, the stains
become a warning. It is by will alone I set my mind in motion."
  -Piter De Vries

[toc] | [prev] | [next] | [standalone]


#64468

FrommGhost <mGhost@mouse-potato.com>
Date2020-04-09 00:12 +0000
Message-ID<r6lp8u$44l$8@dont-email.me>
In reply to#64467
On 2020-04-09, Wildman <best_lay@yahoo.com> wrote:
> On Wed, 08 Apr 2020 22:15:48 +0000, mGhost wrote:
>
>> On 2020-04-08, Wildman <best_lay@yahoo.com> wrote:
>>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>>>
>>>> On 2020-04-08, F Russell <fr@random.info> wrote:
>>>>> On Wed, 08 Apr 2020 10:02:47 -0700, Bengt T wrote:
>>>>>
>>>>>> In my backup script, using rsync, some directories/files will not be processed
>>>>>> because they are only accessible by root. My way around this is to use "sudo
>>>>>>
>>>>>
>>>>> Your "way around" should be to boot up as the root user and
>>>>> stay as the root user.
>>>>>
>>>>> For the single-user workstation this is the ONLY way.
>>>>>
>>>>> I still hear moans and groans about running as root but
>>>>> all of that security nonsense is just that: nonsense.
>>>>> They can always spout off with generalities but they
>>>>> can never provide specific examples about how a single-user
>>>>> workstation can be compromised by running as root.
>>>>>
>>>> 
>>>> Sure, the idea is that someone might craft a link which floods a buffer
>>>> in such a way that the code they want to execute is sitting somewhere in
>>>> memory where there exploit executes it. Without a privileged account,
>>>> that execution would fail. With a root level user running, it executes
>>>> and opens Pandora's box. 
>>>> 
>>>> You don't want to be the unknowing victim of some clever attacks where
>>>> by you make their job even easier. It doesn't take much to open a port
>>>> on your machine, to a command and control service if your own system
>>>> doesn't even stop ask you if it should, which it won't if you're already
>>>> root and as root, you interact with their exploit. 
>>>> 
>>>> What if I write a simple script, which looks normal to you, but the
>>>> script loads more instructions from the web, which you don't see. It's
>>>> not in the script you see, except for loading of it. You run it, and as
>>>> root, I tell your system download an execute a cron job headlessly. And
>>>> every 10 minutes you're machine asks my machine what I want it to do on
>>>> my behalf. Not too fun. I could setup accounts, take screen shots, raid
>>>> your files and upload them to me, grab you email, decrypt your encrypted
>>>> files, encrypt your drive, and do pretty much anything I want. I'm root.
>>>
>>> Would not the person writting the script haved to be a
>>> complete idiot?  You create a script that opens a port
>>> on the internet without you knowing it?  Nonsense.
>>>
>> Let me be more clear. Say I KNOW you like to run as root all the time.
>> And one day in conversation you ask for a script that does a certain
>> thing. So I write it, and send it to you. It does what you asked, and a
>> little more for me.
>> 
>> Because you are root, it just obeys what I wrote without question or
>> prompt. That's very dangerous. 
>> 
>> Here's another one. 
>> 
>> I make a link, and it is super long. I know specifically how many
>> characters it will take to overflow a buffer, and what comes after that
>> sits in your memory. That extra payload is now in your memory waiting to
>> be executed. Maybe I make an okay button, which you click on, which is
>> actually the execution of that memory. Again, you're root. So nothing
>> stops and asks for permission. It just does what I said. It just
>> executes the code in the memory location I specified. Again, I have
>> compromised your system. 
>> 
>> With you running as root, it just obeys me. With you not running as
>> root, I request to run something which requires root is met with a
>> prompt asking you for permission or just failing to execute at all.
>> Either way, you have a chance. 
>> 
>> You're just making it easier to be taken over. Normally I'd need some
>> method of escalating my privilege. Here, I'd need not bother. 
>> 
>> See? Not nonsense at all. Running as root all the time is not smart.
>
> You keep moving the goal post.  No one said anything about
> running as root all the time.  This thread was about running
> a single script as root without sudo.  Someone would have to
> be a complete idiot to run their system as root.  We are Linux
> users, not Windows.  Buy yourself an umbrella Chicken Little.
>
Then I misunderstood the question. My apologies. 

-- 
Я гость в отеле

[toc] | [prev] | [next] | [standalone]


#64474

FromWildman <best_lay@yahoo.com>
Date2020-04-08 21:03 -0500
Message-ID<OKSdne3sVcfvHxPDnZ2dnUU7-QWdnZ2d@giganews.com>
In reply to#64468
On Thu, 09 Apr 2020 00:12:15 +0000, mGhost wrote:

> On 2020-04-09, Wildman <best_lay@yahoo.com> wrote:
>> On Wed, 08 Apr 2020 22:15:48 +0000, mGhost wrote:
>>
>>> On 2020-04-08, Wildman <best_lay@yahoo.com> wrote:
>>>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>>>>
>>>>> On 2020-04-08, F Russell <fr@random.info> wrote:
>>>>>> On Wed, 08 Apr 2020 10:02:47 -0700, Bengt T wrote:
>>>>>>
>>>>>>> In my backup script, using rsync, some directories/files will not be processed
>>>>>>> because they are only accessible by root. My way around this is to use "sudo
>>>>>>>
>>>>>>
>>>>>> Your "way around" should be to boot up as the root user and
>>>>>> stay as the root user.
>>>>>>
>>>>>> For the single-user workstation this is the ONLY way.
>>>>>>
>>>>>> I still hear moans and groans about running as root but
>>>>>> all of that security nonsense is just that: nonsense.
>>>>>> They can always spout off with generalities but they
>>>>>> can never provide specific examples about how a single-user
>>>>>> workstation can be compromised by running as root.
>>>>>>
>>>>> 
>>>>> Sure, the idea is that someone might craft a link which floods a buffer
>>>>> in such a way that the code they want to execute is sitting somewhere in
>>>>> memory where there exploit executes it. Without a privileged account,
>>>>> that execution would fail. With a root level user running, it executes
>>>>> and opens Pandora's box. 
>>>>> 
>>>>> You don't want to be the unknowing victim of some clever attacks where
>>>>> by you make their job even easier. It doesn't take much to open a port
>>>>> on your machine, to a command and control service if your own system
>>>>> doesn't even stop ask you if it should, which it won't if you're already
>>>>> root and as root, you interact with their exploit. 
>>>>> 
>>>>> What if I write a simple script, which looks normal to you, but the
>>>>> script loads more instructions from the web, which you don't see. It's
>>>>> not in the script you see, except for loading of it. You run it, and as
>>>>> root, I tell your system download an execute a cron job headlessly. And
>>>>> every 10 minutes you're machine asks my machine what I want it to do on
>>>>> my behalf. Not too fun. I could setup accounts, take screen shots, raid
>>>>> your files and upload them to me, grab you email, decrypt your encrypted
>>>>> files, encrypt your drive, and do pretty much anything I want. I'm root.
>>>>
>>>> Would not the person writting the script haved to be a
>>>> complete idiot?  You create a script that opens a port
>>>> on the internet without you knowing it?  Nonsense.
>>>>
>>> Let me be more clear. Say I KNOW you like to run as root all the time.
>>> And one day in conversation you ask for a script that does a certain
>>> thing. So I write it, and send it to you. It does what you asked, and a
>>> little more for me.
>>> 
>>> Because you are root, it just obeys what I wrote without question or
>>> prompt. That's very dangerous. 
>>> 
>>> Here's another one. 
>>> 
>>> I make a link, and it is super long. I know specifically how many
>>> characters it will take to overflow a buffer, and what comes after that
>>> sits in your memory. That extra payload is now in your memory waiting to
>>> be executed. Maybe I make an okay button, which you click on, which is
>>> actually the execution of that memory. Again, you're root. So nothing
>>> stops and asks for permission. It just does what I said. It just
>>> executes the code in the memory location I specified. Again, I have
>>> compromised your system. 
>>> 
>>> With you running as root, it just obeys me. With you not running as
>>> root, I request to run something which requires root is met with a
>>> prompt asking you for permission or just failing to execute at all.
>>> Either way, you have a chance. 
>>> 
>>> You're just making it easier to be taken over. Normally I'd need some
>>> method of escalating my privilege. Here, I'd need not bother. 
>>> 
>>> See? Not nonsense at all. Running as root all the time is not smart.
>>
>> You keep moving the goal post.  No one said anything about
>> running as root all the time.  This thread was about running
>> a single script as root without sudo.  Someone would have to
>> be a complete idiot to run their system as root.  We are Linux
>> users, not Windows.  Buy yourself an umbrella Chicken Little.
>>
> Then I misunderstood the question. My apologies.

Accepted.  No problem.

-- 
<Wildman> GNU/Linux user #557453
The cow died so I don't need your bull!

[toc] | [prev] | [next] | [standalone]


#64492

From"Carlos E.R." <robin_listas@es.invalid>
Date2020-04-09 13:50 +0200
Message-ID<soe3mg-70b.ln1@Telcontar.valinor>
In reply to#64467
On 09/04/2020 02.05, Wildman wrote:
> On Wed, 08 Apr 2020 22:15:48 +0000, mGhost wrote:
>> On 2020-04-08, Wildman <best_lay@yahoo.com> wrote:
>>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>>>> On 2020-04-08, F Russell <fr@random.info> wrote:
>>>>> On Wed, 08 Apr 2020 10:02:47 -0700, Bengt T wrote:
>>>>>> In my backup script, using rsync, some directories/files will not be processed
>>>>>> because they are only accessible by root. My way around this is to use "sudo
>>>>>>
>>>>>
>>>>> Your "way around" should be to boot up as the root user and
>>>>> stay as the root user.
>>>>>
>>>>> For the single-user workstation this is the ONLY way.
>>>>>
>>>>> I still hear moans and groans about running as root but
>>>>> all of that security nonsense is just that: nonsense.
>>>>> They can always spout off with generalities but they
>>>>> can never provide specific examples about how a single-user
>>>>> workstation can be compromised by running as root.


...

>> See? Not nonsense at all. Running as root all the time is not smart.

Yes, someone did.

> You keep moving the goal post.  No one said anything about
> running as root all the time.  This thread was about running
> a single script as root without sudo.  Someone would have to
> be a complete idiot to run their system as root.  We are Linux
> users, not Windows.  Buy yourself an umbrella Chicken Little.
> 

Agreed, but someone did. See the quoted text above.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#64500

FromMelzzzzz <Melzzzzz@zzzzz.com>
Date2020-04-09 14:29 +0000
Message-ID<QiGjG.132156$PR.63442@fx30.am4>
In reply to#64492
On 2020-04-09, Carlos E.R. <robin_listas@es.invalid> wrote:
> On 09/04/2020 02.05, Wildman wrote:
>> On Wed, 08 Apr 2020 22:15:48 +0000, mGhost wrote:
>>> On 2020-04-08, Wildman <best_lay@yahoo.com> wrote:
>>>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>>>>> On 2020-04-08, F Russell <fr@random.info> wrote:
>>>>>> On Wed, 08 Apr 2020 10:02:47 -0700, Bengt T wrote:
>>>>>>> In my backup script, using rsync, some directories/files will not be processed
>>>>>>> because they are only accessible by root. My way around this is to use "sudo
>>>>>>>
>>>>>>
>>>>>> Your "way around" should be to boot up as the root user and
>>>>>> stay as the root user.
>>>>>>
>>>>>> For the single-user workstation this is the ONLY way.
>>>>>>
>>>>>> I still hear moans and groans about running as root but
>>>>>> all of that security nonsense is just that: nonsense.
>>>>>> They can always spout off with generalities but they
>>>>>> can never provide specific examples about how a single-user
>>>>>> workstation can be compromised by running as root.
>
>
> ...
>
>>> See? Not nonsense at all. Running as root all the time is not smart.
>
> Yes, someone did.
>
>> You keep moving the goal post.  No one said anything about
>> running as root all the time.  This thread was about running
>> a single script as root without sudo.  Someone would have to
>> be a complete idiot to run their system as root.  We are Linux
>> users, not Windows.  Buy yourself an umbrella Chicken Little.
>> 
>
> Agreed, but someone did. See the quoted text above.
>

I have problem with wireshark:
I do: sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap 
but apparently I still need sudo wireshark in order to capture :(
Any clue?


-- 
press any key to continue or any other to quit...
U ničemu ja ne uživam kao u svom statusu INVALIDA -- Zli Zec
Svi smo svedoci - oko 3 godine intenzivne propagande je dovoljno da jedan narod poludi --  Zli Zec
Na divljem zapadu i nije bilo tako puno nasilja, upravo zato jer su svi 
bili naoruzani. -- Mladen Gogala

[toc] | [prev] | [next] | [standalone]


#64505 — [OT] Re: How to allow execution of a script requiring root privileges?

FromBit Twister <BitTwister@mouse-potato.com>
Date2020-04-09 10:19 -0500
Subject[OT] Re: How to allow execution of a script requiring root privileges?
Message-ID<slrnr8uf7u.l1s.BitTwister@wb.home.test>
In reply to#64500
On Thu, 09 Apr 2020 14:29:04 GMT, Melzzzzz wrote:
>
> I have problem with wireshark:
> I do: sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap
> but apparently I still need sudo wireshark in order to capture :(
> Any clue?

Based on the inordinate amount of information not provided, I'll guess
you have not added the group 'wireshark' to your login id, and
logged out/in. Do run "id" to verify you are in the wireshark group.

$ id  -nG | tr ' ' '\n' | grep wire
wireshark

[toc] | [prev] | [next] | [standalone]


#64459

FromF Russell <fr@random.info>
Date2020-04-08 22:10 +0000
Message-ID<r6li5g1i5e@news3.newsguy.com>
In reply to#64457
On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:

> It doesn't take much to open a port
> on your machine, to a command and control service 
>

Service?  I have no service(s) running on my machine.

For what do I need a service?  If something needs to
be done I do it myself.

So your whole idea of exploitation is a pipe dream
and could never happen.

Unix was created way back when no one had computers
and hence they had concepts of multi-users and
services..

But in the age of PERSONAL COMPUTERS, those concepts
no longer apply and are extremely anachronistic.

Just always run as root and tell these security idiots
to kiss off.

[toc] | [prev] | [next] | [standalone]


#64461

FrommGhost <mGhost@mouse-potato.com>
Date2020-04-08 22:20 +0000
Message-ID<r6lint$lpv$6@dont-email.me>
In reply to#64459
On 2020-04-08, F Russell <fr@random.info> wrote:
> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>
>> It doesn't take much to open a port
>> on your machine, to a command and control service 

No, I'm the service. Though I could create a service on your machine.
You already have one, and it's called CRON. Or I could just add code
that makes a service and runs it. 

> Service?  I have no service(s) running on my machine.

So if you run top right now, nothing comes up? 

> For what do I need a service?  If something needs to
> be done I do it myself.
>
> So your whole idea of exploitation is a pipe dream
> and could never happen.

No, it can still happen. 

> Unix was created way back when no one had computers
> and hence they had concepts of multi-users and
> services..
>
> But in the age of PERSONAL COMPUTERS, those concepts
> no longer apply and are extremely anachronistic.
>
> Just always run as root and tell these security idiots
> to kiss off.

Nope, afraid not. Aside from Wildman and maybe one or two others,
everyone will side with me. Just watch. What you're saying is wrong.

-- 
Я гость в отеле

[toc] | [prev] | [next] | [standalone]


#64462

FromF Russell <fr@random.info>
Date2020-04-08 22:37 +0000
Message-ID<r6ljms01mtb@news2.newsguy.com>
In reply to#64461
On Wed, 08 Apr 2020 22:20:45 +0000, mGhost wrote:

> 
> What you're saying is wrong.
>

Talk to me in 10 years.  Nothing will have happened because
nothing can happen.

It's all useless, meaningless armchair speculation.

[toc] | [prev] | [next] | [standalone]


#64463

FrommGhost <mGhost@mouse-potato.com>
Date2020-04-08 22:56 +0000
Message-ID<r6lkqn$44l$1@dont-email.me>
In reply to#64462
On 2020-04-08, F Russell <fr@random.info> wrote:
> On Wed, 08 Apr 2020 22:20:45 +0000, mGhost wrote:
>
>> 
>> What you're saying is wrong.
>>
>
> Talk to me in 10 years.  Nothing will have happened because
> nothing can happen.
>
> It's all useless, meaningless armchair speculation.
>
If nothing happens to you or your machine it will have more to do with
obscurity than your safety precautions. Your observation here is
incorrect. Sometimes what we see, fits, even though it is incorrect. 

-- 
Я гость в отеле

[toc] | [prev] | [next] | [standalone]


#64465

From"David W. Hodgins" <dwhodgins@nomail.afraid.org>
Date2020-04-08 19:33 -0400
Message-ID<op.0ir3qqz2a3w0dxdave@hodgins.homeip.net>
In reply to#64461
On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com> wrote:

> Nope, afraid not. Aside from Wildman and maybe one or two others,
> everyone will side with me. Just watch. What you're saying is wrong.

You seem to be one of the trolls whose purpose is to do nothing but sow
dissension, and divide people. Civil discussion is a much more productive
way of contributing.

[toc] | [prev] | [next] | [standalone]


#64466

FrommGhost <mGhost@mouse-potato.com>
Date2020-04-08 23:50 +0000
Message-ID<r6lo09$44l$7@dont-email.me>
In reply to#64465
On 2020-04-08, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com> wrote:
>
>> Nope, afraid not. Aside from Wildman and maybe one or two others,
>> everyone will side with me. Just watch. What you're saying is wrong.
>
> You seem to be one of the trolls whose purpose is to do nothing but sow
> dissension, and divide people. Civil discussion is a much more productive
> way of contributing.

Your opinion is duly noted. 

Is it or is it not a good idea to run as root all the time? 

Nothing in that question is trolling in anyway. I've answered the
question with valid examples. If you disagree with the way I said it, drop
me in your killfile and be done with me. Simple as that. Otherwise, I
have no argument with you sir. Have a wonderful day. Stay safe. 

-- 
Я гость в отеле

[toc] | [prev] | [next] | [standalone]


#64472

From"David W. Hodgins" <dwhodgins@nomail.afraid.org>
Date2020-04-08 21:23 -0400
Message-ID<op.0ir8toj1a3w0dxdave@hodgins.homeip.net>
In reply to#64466
On Wed, 08 Apr 2020 19:50:33 -0400, mGhost <mGhost@mouse-potato.com> wrote:

> On 2020-04-08, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com> wrote:
>>
>>> Nope, afraid not. Aside from Wildman and maybe one or two others,
>>> everyone will side with me. Just watch. What you're saying is wrong.
>>
>> You seem to be one of the trolls whose purpose is to do nothing but sow
>> dissension, and divide people. Civil discussion is a much more productive
>> way of contributing.
>
> Your opinion is duly noted.
>
> Is it or is it not a good idea to run as root all the time?

Which as usual with a question that asks if something is a good idea, the
answer is that it depends on the situation.

On a system that does not have any type of connection to other systems, it
doesn't matter, and can make things easier, especially if other steps have been
taken such as having /usr is on a read only file system.

If the system has any sort of connection to a network, then running as root
defeats one level of system security. Restricting what runs as root is simply
one part of system security. Security is a process, not a product. There will
always be exceptions to rules. Proper management of the exceptions, with risk
assessment and analysis to decide what is acceptable risk in the given situation
will always over ride any given set of hard coded rules.

That's why sudo allows the system administrator to control whether or not a
given script can be run as root without a password, by selected users. It's
up to the administrator (root) to decide what is acceptable risk, and to ensure
other users, if any, are properly protected.

> Nothing in that question is trolling in anyway. I've answered the
> question with valid examples. If you disagree with the way I said it, drop
> me in your killfile and be done with me. Simple as that. Otherwise, I
> have no argument with you sir. Have a wonderful day. Stay safe.

I rarely killfile people. While I rarely respond to people I think are trolling,
there are times statements trolls post should be be countered.

[toc] | [prev] | [next] | [standalone]


#64475

FrommGhost <mGhost@mouse-potato.com>
Date2020-04-09 02:45 +0000
Message-ID<r6m28m$gjl$1@dont-email.me>
In reply to#64472
On 2020-04-09, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Wed, 08 Apr 2020 19:50:33 -0400, mGhost <mGhost@mouse-potato.com> wrote:
>
>> On 2020-04-08, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>>> On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com> wrote:
>>>
>>>> Nope, afraid not. Aside from Wildman and maybe one or two others,
>>>> everyone will side with me. Just watch. What you're saying is wrong.
>>>
>>> You seem to be one of the trolls whose purpose is to do nothing but sow
>>> dissension, and divide people. Civil discussion is a much more productive
>>> way of contributing.
>>
>> Your opinion is duly noted.
>>
>> Is it or is it not a good idea to run as root all the time?
>
> Which as usual with a question that asks if something is a good idea, the
> answer is that it depends on the situation.
>
> On a system that does not have any type of connection to other systems, it
> doesn't matter, and can make things easier, especially if other steps have been
> taken such as having /usr is on a read only file system.
>
> If the system has any sort of connection to a network, then running as root
> defeats one level of system security. Restricting what runs as root is simply
> one part of system security. Security is a process, not a product. There will
> always be exceptions to rules. Proper management of the exceptions, with risk
> assessment and analysis to decide what is acceptable risk in the given situation
> will always over ride any given set of hard coded rules.
>
> That's why sudo allows the system administrator to control whether or not a
> given script can be run as root without a password, by selected users. It's
> up to the administrator (root) to decide what is acceptable risk, and to ensure
> other users, if any, are properly protected.
>
>> Nothing in that question is trolling in anyway. I've answered the
>> question with valid examples. If you disagree with the way I said it, drop
>> me in your killfile and be done with me. Simple as that. Otherwise, I
>> have no argument with you sir. Have a wonderful day. Stay safe.
>
> I rarely killfile people. While I rarely respond to people I think are trolling,
> there are times statements trolls post should be be countered.

Apparently I misunderstood the question. I'm not trying to troll you or
anyone. Have lots of respect for you, Sir. Have a wonderful day. 

-- 
Я гость в отеле

[toc] | [prev] | [next] | [standalone]


#64478

FromBit Twister <BitTwister@mouse-potato.com>
Date2020-04-08 23:29 -0500
Message-ID<slrnr8t95q.94k.BitTwister@wb.home.test>
In reply to#64466
On Wed, 8 Apr 2020 23:50:33 -0000 (UTC), mGhost wrote:


> Is it or is it not a good idea to run as root all the time?

It is NOT a good idea to run as root all the time.

As for the dumb asses who think they are safe because they are behind
a NAT firewall and are not running "any services", they can be cracked.

Inbound Internet method of access is for the script kiddies.
The real criminals know the more insecure mode is via a website.

How you ask? By the user downloading/running anything from the Internet.

I am not talking about code/scripts, I am talking about arf, bmp, silverlight,
flash, ico, jpg, pdf, png, gif, mpeg, MP3, WMA, WMV, MP2, TIFF, doc.. files.

I wish I had kept the link because I can not find it via google, but
several years ago there was an article about a cracked site would run
a process, on the user's computer, which would open a port and call home
and and wait for commands.

The process was only in memory. After that, is was trivial for the
the criminal to send a rootkit to the system and install it.

Once a rootkit is installed, you have no way to check the system to
see if it is infected while the system is running.

[toc] | [prev] | [next] | [standalone]


#64482

FromMartyn Barclay <mby@dev.null>
Date2020-04-09 07:33 +0100
Message-ID<pan.2020.04.09.06.33.40.300645@dev.null>
In reply to#64466
On Wed, 08 Apr 2020 23:50:33 +0000, mGhost wrote:

> On 2020-04-08, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com>
>> wrote:
>>
>>> Nope, afraid not. Aside from Wildman and maybe one or two others,
>>> everyone will side with me. Just watch. What you're saying is wrong.
>>
>> You seem to be one of the trolls whose purpose is to do nothing but sow
>> dissension, and divide people. Civil discussion is a much more
>> productive way of contributing.
> 
> Your opinion is duly noted.
> 
> Is it or is it not a good idea to run as root all the time?

It is /not/ a "good idea" to run as root all the time. 
It is IMO sheer stupidity, or ignorance.

> Nothing in that question is trolling in anyway. I've answered the question
> with valid examples. If you disagree with the way I said it, drop me in
> your killfile and be done with me. Simple as that. Otherwise, I have no
> argument with you sir. Have a wonderful day. Stay safe.

-- 
Debian 10.2 "Buster"  

[toc] | [prev] | [next] | [standalone]


#64491

From"Carlos E.R." <robin_listas@es.invalid>
Date2020-04-09 13:47 +0200
Message-ID<kie3mg-vea.ln1@Telcontar.valinor>
In reply to#64466
On 09/04/2020 01.50, mGhost wrote:
> On 2020-04-08, David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
>> On Wed, 08 Apr 2020 18:20:45 -0400, mGhost <mGhost@mouse-potato.com> wrote:
>>
>>> Nope, afraid not. Aside from Wildman and maybe one or two others,
>>> everyone will side with me. Just watch. What you're saying is wrong.
>>
>> You seem to be one of the trolls whose purpose is to do nothing but sow
>> dissension, and divide people. Civil discussion is a much more productive
>> way of contributing.
> 
> Your opinion is duly noted.
> 
> Is it or is it not a good idea to run as root all the time?

It is a very bad idea.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#64486

FromAragorn <thorongil@telenet.be>
Date2020-04-09 10:20 +0200
Message-ID<20200409102048.735065dc@nx-74205>
In reply to#64459
On 08.04.2020 at 22:10, F Russell scribbled:

> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
> 
> > It doesn't take much to open a port
> > on your machine, to a command and control service 
> >  
> 
> Service?  I have no service(s) running on my machine.
> 
> For what do I need a service?  If something needs to
> be done I do it myself.
> 
> So your whole idea of exploitation is a pipe dream
> and could never happen.
> 
> Unix was created way back when no one had computers
> and hence they had concepts of multi-users and
> services..
> 
> But in the age of PERSONAL COMPUTERS, those concepts
> no longer apply and are extremely anachronistic.
> 
> Just always run as root and tell these security idiots
> to kiss off.

You've apparently missed about four decades worth of evolution.  This
is NOT the age of personal computers, because personal computers that
have no network connection are not being used anywhere anymore.

This is the age of interconnected workstations and servers, and the
single-user paradigm died in 1995, when the internet was made available
to the general public.  

The single-user paradigm of MS-DOS was also the bane of operating
systems like Windows 95, and to a large extent even the first NT-based
Windows versions.  The only single-user devices in use anymore nowadays
are smartphones.  Desktops (and to a limited extent even laptops) are
multi-user workstations.

The very reason why UNIX has always been a solid operating system lies
in the fact that it was designed from the ground up as a multi-user
system with clear privilege separation and permissions.

But hey, I guess all computer scientists must be wrong and you must be
right.

<rolling eyes>

-- 
With respect,
= Aragorn =

[toc] | [prev] | [next] | [standalone]


#64489

FromMartyn Barclay <mby@dev.null>
Date2020-04-09 11:15 +0100
Message-ID<pan.2020.04.09.10.15.17.8779@dev.null>
In reply to#64486
On Thu, 09 Apr 2020 10:20:48 +0200, Aragorn wrote:

> On 08.04.2020 at 22:10, F Russell scribbled:
> 
>> On Wed, 08 Apr 2020 21:47:28 +0000, mGhost wrote:
>> 
>> > It doesn't take much to open a port
>> > on your machine, to a command and control service
>> >  
>> >  
>> Service?  I have no service(s) running on my machine.

So let's see, amongst other services that /may/ be running (depending on
the desktop) according to this guy he does /not/ have running: 

Apper

Cookie Jar

ColorCorrect Geolocation Updater

Hardware Detection

Free Space Notifier

Monitor Application Menus Daemon

Input Actions

Keyboard Daemon

Network Proxy Configuration

Network Status

Remote URL Change Notifier

Status Notifier Manager

Time Zone

Write Daemon

>> For what do I need a service?  If something needs to be done I do it
>> myself.
>> 
>> So your whole idea of exploitation is a pipe dream and could never
>> happen.
>> 
>> Unix was created way back when no one had computers and hence they had
>> concepts of multi-users and services..
>> 
>> But in the age of PERSONAL COMPUTERS, those concepts no longer apply and
>> are extremely anachronistic.
>> 
>> Just always run as root and tell these security idiots to kiss off.
> 
> You've apparently missed about four decades worth of evolution.  This is
> NOT the age of personal computers, because personal computers that have no
> network connection are not being used anywhere anymore.
> 
> This is the age of interconnected workstations and servers, and the
> single-user paradigm died in 1995, when the internet was made available to
> the general public.
> 
> The single-user paradigm of MS-DOS was also the bane of operating systems
> like Windows 95, and to a large extent even the first NT-based Windows
> versions.  The only single-user devices in use anymore nowadays are
> smartphones.  Desktops (and to a limited extent even laptops) are
> multi-user workstations.
> 
> The very reason why UNIX has always been a solid operating system lies in
> the fact that it was designed from the ground up as a multi-user system
> with clear privilege separation and permissions.
> 
> But hey, I guess all computer scientists must be wrong and you must be
> right.
> 
> <rolling eyes>

Heh.

-- 
Debian 10.2 "Buster"  

[toc] | [prev] | [next] | [standalone]


#64470

FromNed Latham <nedlatham@woden.valhalla.oz>
Date2020-04-08 19:39 -0500
Message-ID<slrnr8srlf.mfa.nedlatham@woden.valhalla.oz>
In reply to#64456
F Russell wrote:
> Bengt T wrote:
> >
> > In my backup script, using rsync, some directories/files will not be processed
> > because they are only accessible by root. My way around this is to use "sudo
>
> Your "way around" should be to boot up as the root user and
> stay as the root user.
>
> For the single-user workstation this is the ONLY way.

It's madness.

> I still hear moans and groans about running as root but
> all of that security nonsense is just that: nonsense.
> They can always spout off with generalities but they
> can never provide specific examples about how a single-user
> workstation can be compromised by running as root.

cd /
rm *

[toc] | [prev] | [next] | [standalone]


Page 2 of 3 — ← Prev page 1 [2] 3  Next page →

Back to top | Article view | alt.os.linux


csiph-web