Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #285: Telecommunications is upgrading.


comp / comp.os.linux.misc / Re: sudo override

SubjectAuthor
* sudo overridevjp2.at
+- Re: sudo overrideLew Pitcher
`* Re: sudo overrideAnssi Saari
 `* Re: sudo overrideThe Natural Philosopher
  +* Re: sudo overrideRich
  |+- Re: sudo overrideLew Pitcher
  |`- Re: sudo overrideThe Natural Philosopher
  `* Re: sudo overrideLawrence D'Oliveiro
   `* Re: sudo overrideDavid W. Hodgins
    +* Re: sudo overrideLawrence D'Oliveiro
    |`* Re: sudo overrideAnssi Saari
    | `* Re: sudo overrideChris Ahlstrom
    |  `* Re: sudo overrideDavid W. Hodgins
    |   +- Re: sudo overrideRich
    |   `- Re: sudo overrideLawrence D'Oliveiro
    `* Re: sudo overrideEric Pozharski
     `- Re: sudo overridevjp2.at

1
Subject: sudo override
From: vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups: comp.os.linux.misc
Organization: Samani Marions Panyaught NYS-13760-4251-019-USA
Date: Tue, 15 Oct 2024 23:59 UTC
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.2602:f977:0:1::1!not-for-mail
From: vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups: comp.os.linux.misc
Subject: sudo override
Date: Tue, 15 Oct 2024 23:59:01 -0000 (UTC)
Organization: Samani Marions Panyaught NYS-13760-4251-019-USA
Message-ID: <vemvk5$j4c$1@reader1.panix.com>
Injection-Date: Tue, 15 Oct 2024 23:59:01 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="2602:f977:0:1::1";
logging-data="19596"; mail-complaints-to="abuse@panix.com"
User-Agent: tin/2.6.3-20231224 ("Banff") (NetBSD/10.0_RC3 (amd64))
View all headers

It seems I need to use sudo on minicom,
but not for sudo, to access the USB port.

It is annoying but not fatal.
Is there any way to turn off this reqmt?

--
Vasos Panagiotopoulos panix.com/~vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---

Subject: Re: sudo override
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 16 Oct 2024 01:07 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 01:07:12 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <ven3k0$1n6t1$1@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Oct 2024 03:07:12 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4b10a85c6ccc4dec18c261208e06c76b";
logging-data="1809313"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tMQxsyd8U4SFMqndXhtOzFR+10nC6IFo="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:RJI3/jfQ/9HWO9F1KKOVEYodTRc=
View all headers

On Tue, 15 Oct 2024 23:59:01 +0000, vjp2.at wrote:

> It seems I need to use sudo on minicom,
> but not for sudo, to access the USB port.

I'm not sure what you mean here.
Do you mean that, in order to use minicom as an unprivileged user,
you must run minicom under sudo (eg "sudo minicom") so that it
can access a USB serial communications device?
> It is annoying but not fatal.
> Is there any way to turn off this reqmt?

If my guess above is correct, then you probably have a permissions
problem, in that the USB serial device permission bits exclude your
unprivileged user from read/write access.

You can fix this in a couple of ways:
1) make changes to the udev rules governing the USB device so that
the new rules grant your unprivileged user read/write access, or
2) as root, add your unprivileged user's UID to a group that /does/
have read/write access to the USB device.

HTH
--
Lew Pitcher
"In Skills We Trust"

Subject: Re: sudo override
From: Anssi Saari
Newsgroups: comp.os.linux.misc
Organization: An impatient and LOUD arachnid
Date: Wed, 16 Oct 2024 12:04 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anssi.saari@usenet.mail.kapsi.fi (Anssi Saari)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 15:04:37 +0300
Organization: An impatient and LOUD arachnid
Lines: 16
Message-ID: <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
References: <vemvk5$j4c$1@reader1.panix.com>
MIME-Version: 1.0
Content-Type: text/plain
Injection-Date: Wed, 16 Oct 2024 14:04:38 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c459d1fe47dde62efb401af7d57b43c2";
logging-data="2370680"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+HKoLtBuh0qt4ei6uxTdKU"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:MOlDeX946dQVf9MAj+qngG3zKkQ=
sha1:PlOWpnLqqVk6wQ+DtUbZN0NBcM4=
View all headers

vjp2.at@at.BioStrategist.dot.dot.com writes:

> It seems I need to use sudo on minicom,
> but not for sudo, to access the USB port.
>
> It is annoying but not fatal.
> Is there any way to turn off this reqmt?

On some Linux systems, maybe even typically, permissions are like this
for serial devices:

crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0

So it might be all you need to do is add your user to the dialout
group. Then again, /dev/ttyAMA0 on my Raspberry Pi running Ubuntu
doesn't follow this convention, so YMMV.

Subject: Re: sudo override
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Wed, 16 Oct 2024 18:55 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 19:55:54 +0100
Organization: A little, after lunch
Lines: 28
Message-ID: <vep27q$2bpp9$14@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Oct 2024 20:55:55 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6a44ea53f19da8f85861dcb66c7f73cb";
logging-data="2484009"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/OuMWQEWQQDTmdcbAo6oDg3xxHQUXhRLc="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:Qq6nBA54e/+4xBvOSrmDlIF911I=
Content-Language: en-GB
In-Reply-To: <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
View all headers

On 16/10/2024 13:04, Anssi Saari wrote:
> vjp2.at@at.BioStrategist.dot.dot.com writes:
>
>> It seems I need to use sudo on minicom,
>> but not for sudo, to access the USB port.
>>
>> It is annoying but not fatal.
>> Is there any way to turn off this reqmt?
>
> On some Linux systems, maybe even typically, permissions are like this
> for serial devices:
>
> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0

[ that device does not exist on my installation, but I am part of the
dialout group and can access a USB serial port : I vaguely think I might
have added myself for that reason]
>
> So it might be all you need to do is add your user to the dialout
> group. Then again, /dev/ttyAMA0 on my Raspberry Pi running Ubuntu
> doesn't follow this convention, so YMMV.

--
There is something fascinating about science. One gets such wholesale
returns of conjecture out of such a trifling investment of fact.

Mark Twain

Subject: Re: sudo override
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 16 Oct 2024 19:37 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 19:37:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 11
Message-ID: <vep4l0$2ceen$1@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me>
Injection-Date: Wed, 16 Oct 2024 21:37:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="c1dbc23c706900653bfd33e2cb7e8f90";
logging-data="2505175"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18WZmzyPE2uaSz3HMkW34nh"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:WoNQEHppWe+OIPQdo1JKCly2RfQ=
View all headers

The Natural Philosopher <tnp@invalid.invalid> wrote:
> On 16/10/2024 13:04, Anssi Saari wrote:
>> On some Linux systems, maybe even typically, permissions are like
>> this for serial devices:
>>
>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>
> [ that device does not exist on my installation,

It appears dynamically when you plug in a USB serial device to a USB
port.

Subject: Re: sudo override
From: Lew Pitcher
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 16 Oct 2024 19:46 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: lew.pitcher@digitalfreehold.ca (Lew Pitcher)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 19:46:14 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <vep565$28lti$1@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com>
<sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me>
<vep4l0$2ceen$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Oct 2024 21:46:14 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4b10a85c6ccc4dec18c261208e06c76b";
logging-data="2381746"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//mjJSZkU7vEGHG9BMd+owZbH4gtKe6/k="
User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508
git://git.gnome.org/pan2)
Cancel-Lock: sha1:wMntA8uXUszgywRLAesv7zU7d/s=
View all headers

On Wed, 16 Oct 2024 19:37:04 +0000, Rich wrote:

> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 16/10/2024 13:04, Anssi Saari wrote:
>>> On some Linux systems, maybe even typically, permissions are like
>>> this for serial devices:
>>>
>>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>>
>> [ that device does not exist on my installation,
>
> It appears dynamically when you plug in a USB serial device to a USB
> port.

Hence my reference to udev rules. Specifically, the udev rules that
create the /dev file related to the USB device in question. You can
alter or add to these rules to give that device node a specific owning
UID and GID, and/or specific rwx rules for owner, group and other.

BUT, it would be simpler for the OP to just add their own UID to the
group that udev assigns group ownership of the USB device to.

--
Lew Pitcher
"In Skills We Trust"

Subject: Re: sudo override
From: The Natural Philosop
Newsgroups: comp.os.linux.misc
Organization: A little, after lunch
Date: Wed, 16 Oct 2024 20:40 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tnp@invalid.invalid (The Natural Philosopher)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 21:40:05 +0100
Organization: A little, after lunch
Lines: 21
Message-ID: <vep8b5$2cs8e$4@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep4l0$2ceen$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 16 Oct 2024 22:40:05 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="6a44ea53f19da8f85861dcb66c7f73cb";
logging-data="2519310"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SlwmH319elwr8EzsROv5TM+/ytkObGME="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:cJC+KwCns8XeEYOixGj9NNK5pJs=
In-Reply-To: <vep4l0$2ceen$1@dont-email.me>
Content-Language: en-GB
View all headers

On 16/10/2024 20:37, Rich wrote:
> The Natural Philosopher <tnp@invalid.invalid> wrote:
>> On 16/10/2024 13:04, Anssi Saari wrote:
>>> On some Linux systems, maybe even typically, permissions are like
>>> this for serial devices:
>>>
>>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>>
>> [ that device does not exist on my installation,
>
> It appears dynamically when you plug in a USB serial device to a USB
> port.

Fairy Nuff. But yes, adding yourself to the dialout group allows access.

--
"Socialist governments traditionally do make a financial mess. They
always run out of other people's money. It's quite a characteristic of them"

Margaret Thatcher

Subject: Re: sudo override
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Wed, 16 Oct 2024 21:01 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Wed, 16 Oct 2024 21:01:13 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 10
Message-ID: <vep9ip$2dact$2@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 16 Oct 2024 23:01:13 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="8e07f34fd508234a93a0d7f7570ee3ce";
logging-data="2533789"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18Lu8Ke3pTgi/WxPL9I12MB"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:ZjoTU/xrZDzKJ/592DR7+m5Hy6M=
View all headers

On Wed, 16 Oct 2024 19:55:54 +0100, The Natural Philosopher wrote:

> On 16/10/2024 13:04, Anssi Saari wrote:
>>
>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>
> [ that device does not exist on my installation...

Like any USB device, it only exists while the physical hardware is plugged
in.

Subject: Re: sudo override
From: David W. Hodgins
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 17 Oct 2024 04:58 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 00:58:01 -0400
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <op.2vrr2zawa3w0dxdave@hodgins.homeip.net>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 06:59:32 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f2c9595ce7ef04a054d76ac003c76ddc";
logging-data="2782295"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+a1QWdyyfT7FOqxCpI7U0wlecmAJZ7aQw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:5bPaPpJ5N4q3bpUKeIbH0CBkHv4=
View all headers

On Wed, 16 Oct 2024 17:01:13 -0400, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:

> On Wed, 16 Oct 2024 19:55:54 +0100, The Natural Philosopher wrote:
>
>> On 16/10/2024 13:04, Anssi Saari wrote:
>>>
>>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>>
>> [ that device does not exist on my installation...
>
> Like any USB device, it only exists while the physical hardware is plugged
> in.

Plugging in the device will create the /dev entry only if the package
modemmanager is installed. That's the package with the udev rules to
create /dev/ttyUSB0 devices.

https://www.freedesktop.org/wiki/Software/ModemManager/

Regards, Dave Hodgins

Subject: Re: sudo override
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 17 Oct 2024 05:46 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 05:46:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 7
Message-ID: <veq8ar$2l6fb$1@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me>
<op.2vrr2zawa3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 07:46:04 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9416ba48f1adcfe2127401957dfa62bf";
logging-data="2791915"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/tdKvY+Kjw4PO7N5RvCpmf"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:sAkdxGvNMyyS7ICzl4i3cVLGNR8=
View all headers

On Thu, 17 Oct 2024 00:58:01 -0400, David W. Hodgins wrote:

> Plugging in the device will create the /dev entry only if the package
> modemmanager is installed.

I don’t have modemmanager installed. I plugged in a USB-serial adapter,
and /dev/ttyUSB0 appeared. It disappeared when I unplugged the adapter.

Subject: Re: sudo override
From: Anssi Saari
Newsgroups: comp.os.linux.misc
Organization: An impatient and LOUD arachnid
Date: Thu, 17 Oct 2024 10:01 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: anssi.saari@usenet.mail.kapsi.fi (Anssi Saari)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 13:01:08 +0300
Organization: An impatient and LOUD arachnid
Lines: 15
Message-ID: <sm0ttdbvyjf.fsf@lakka.kapsi.fi>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me>
<op.2vrr2zawa3w0dxdave@hodgins.homeip.net>
<veq8ar$2l6fb$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 12:01:09 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="98c8156c9ebd8ae697cb151c24229adc";
logging-data="2854828"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lleZpf/QFLoyg9CJrKkKL"
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)
Cancel-Lock: sha1:dt90dyL5T9jbvR1lSU+t5ros28Q=
sha1:vMA+4ken2si7XuzKOCQy6tLPAX0=
View all headers

Lawrence D'Oliveiro <ldo@nz.invalid> writes:

> On Thu, 17 Oct 2024 00:58:01 -0400, David W. Hodgins wrote:
>
>> Plugging in the device will create the /dev entry only if the package
>> modemmanager is installed.
>
> I don’t have modemmanager installed. I plugged in a USB-serial adapter,
> and /dev/ttyUSB0 appeared. It disappeared when I unplugged the adapter.

Same here, for example the LTE module on my router has five USB-serial
interfaces (ttyUSB0-ttyUSB4) and modemmanager isn't installed.

In fact, I think It would be quite odd if modemmanager were required for
USB-serial adapter udev rules.

Subject: Re: sudo override
From: Chris Ahlstrom
Newsgroups: comp.os.linux.misc
Organization: None
Date: Thu, 17 Oct 2024 10:51 UTC
References: 1 2 3 4 5 6 7
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: OFeem1987@teleworm.us (Chris Ahlstrom)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 06:51:12 -0400
Organization: None
Lines: 25
Message-ID: <veqq82$2n4rs$8@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com>
<sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me>
<vep9ip$2dact$2@dont-email.me> <op.2vrr2zawa3w0dxdave@hodgins.homeip.net>
<veq8ar$2l6fb$1@dont-email.me> <sm0ttdbvyjf.fsf@lakka.kapsi.fi>
Reply-To: OFeem1987@teleworm.us
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 12:51:47 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f668fa9331818b0f4d4c15242b039c98";
logging-data="2855804"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18NUm0jQG+bwzwE8cc9ajQU"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:vWHfurnT7ixHX5kYuRyGaHOUUOI=
X-Mutt: The most widely-used MUA
X-User-Agent: Microsoft Outl00k, Usenet K00k Editions
X-Face: 63n<76,LYJQ2m#'5YL#.T95xqyPiG`ffIP70tN+j"(&@6(4l\7uL)2+/-r0)/9SjZ`qw=
Njn mr93Xrerx}aQG-Ap5IHn"xe;`5:pp"$RH>Kx_ngWw%c\+6qSg!q"41n2[.N/;Pu6q8?+Poz~e
A9? $6_R7cm.l!s8]yfv7x+-FYQ|/k
X-Slrn: Why use anything else?
View all headers

Anssi Saari wrote this copyrighted missive and expects royalties:

> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>
>> On Thu, 17 Oct 2024 00:58:01 -0400, David W. Hodgins wrote:
>>
>>> Plugging in the device will create the /dev entry only if the package
>>> modemmanager is installed.
>>
>> I don’t have modemmanager installed. I plugged in a USB-serial adapter,
>> and /dev/ttyUSB0 appeared. It disappeared when I unplugged the adapter.
>
> Same here, for example the LTE module on my router has five USB-serial
> interfaces (ttyUSB0-ttyUSB4) and modemmanager isn't installed.
>
> In fact, I think It would be quite odd if modemmanager were required for
> USB-serial adapter udev rules.

I've used USB-to-serial adaptors to connect a laptop to (for example) a Cisco
router. No modem manager needed to get /dev/ttyUSB0. Used gtkterm IIRC.
This was years ago.

--
Do what thou wilt shall be the whole of the Law.
-- Aleister Crowley

Subject: Re: sudo override
From: David W. Hodgins
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 17 Oct 2024 17:28 UTC
References: 1 2 3 4 5 6 7 8
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dwhodgins@nomail.afraid.org (David W. Hodgins)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 13:28:25 -0400
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <op.2vsqtnk8a3w0dxdave@hodgins.homeip.net>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me>
<op.2vrr2zawa3w0dxdave@hodgins.homeip.net> <veq8ar$2l6fb$1@dont-email.me>
<sm0ttdbvyjf.fsf@lakka.kapsi.fi> <veqq82$2n4rs$8@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 19:28:52 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="f2c9595ce7ef04a054d76ac003c76ddc";
logging-data="2996470"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/lKJ4v8jtOcpb1DMFF6ENC48oqZSQq/Hw="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:tWEBNPAmcIsNQnX+i/I9t5Tu7OY=
View all headers

On Thu, 17 Oct 2024 06:51:12 -0400, Chris Ahlstrom <OFeem1987@teleworm.us> wrote:

> Anssi Saari wrote this copyrighted missive and expects royalties:
>
>> Lawrence D'Oliveiro <ldo@nz.invalid> writes:
>>
>>> On Thu, 17 Oct 2024 00:58:01 -0400, David W. Hodgins wrote:
>>>
>>>> Plugging in the device will create the /dev entry only if the package
>>>> modemmanager is installed.
>>>
>>> I don’t have modemmanager installed. I plugged in a USB-serial adapter,
>>> and /dev/ttyUSB0 appeared. It disappeared when I unplugged the adapter.
>>
>> Same here, for example the LTE module on my router has five USB-serial
>> interfaces (ttyUSB0-ttyUSB4) and modemmanager isn't installed.
>>
>> In fact, I think It would be quite odd if modemmanager were required for
>> USB-serial adapter udev rules.
>
> I've used USB-to-serial adaptors to connect a laptop to (for example) a Cisco
> router. No modem manager needed to get /dev/ttyUSB0. Used gtkterm IIRC.
> This was years ago.
>

On my system ...
$ grep ttyUSB0 /lib/udev/rules.d/*
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #0): QCDM port
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #2): AT port
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #2): debug port (ignore)
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #0): debug port (ignore)
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #0): AT port
/lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #2): AT port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
/lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port

Those two files are from the modemmanager package.

What package has the ttyUSB0 udev rules on your system?

Regards, Dave Hodgins

Subject: Re: sudo override
From: Rich
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 17 Oct 2024 21:09 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: rich@example.invalid (Rich)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 21:09:57 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 19
Message-ID: <veruf5$2te9t$1@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me> <op.2vrr2zawa3w0dxdave@hodgins.homeip.net> <veq8ar$2l6fb$1@dont-email.me> <sm0ttdbvyjf.fsf@lakka.kapsi.fi> <veqq82$2n4rs$8@dont-email.me> <op.2vsqtnk8a3w0dxdave@hodgins.homeip.net>
Injection-Date: Thu, 17 Oct 2024 23:09:57 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7eaf9119ac2de22979443c99d9057602";
logging-data="3062077"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+PrVEJStESTydIL7R82GX0"
User-Agent: tin/2.6.1-20211226 ("Convalmore") (Linux/5.15.139 (x86_64))
Cancel-Lock: sha1:CotrDlfh/h9gcwSv92Q78IN9kaw=
View all headers

David W. Hodgins <dwhodgins@nomail.afraid.org> wrote:
> On Thu, 17 Oct 2024 06:51:12 -0400, Chris Ahlstrom <OFeem1987@teleworm.us> wrote:
>> I've used USB-to-serial adaptors to connect a laptop to (for
>> example) a Cisco router. No modem manager needed to get
>> /dev/ttyUSB0. Used gtkterm IIRC. This was years ago.
>>
>
> On my system ...
> $ grep ttyUSB0 /lib/udev/rules.d/*
> /lib/udev/rules.d/77-mm-fibocom-port-types.rules:# ttyUSB0 (if #0): QCDM port
....
> /lib/udev/rules.d/77-mm-quectel-port-types.rules:# ttyUSB0 (if #0): QCDM/DIAG port
>
> Those two files are from the modemmanager package.
>
> What package has the ttyUSB0 udev rules on your system?

On Slackware 15, the ttyUSB0 udev rules are also part of the
ModemManager package.

Subject: Re: sudo override
From: Lawrence D'Oliv
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Thu, 17 Oct 2024 21:21 UTC
References: 1 2 3 4 5 6 7 8 9
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ldo@nz.invalid (Lawrence D'Oliveiro)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Thu, 17 Oct 2024 21:21:59 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <verv5n$2tfue$4@dont-email.me>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi>
<vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me>
<op.2vrr2zawa3w0dxdave@hodgins.homeip.net> <veq8ar$2l6fb$1@dont-email.me>
<sm0ttdbvyjf.fsf@lakka.kapsi.fi> <veqq82$2n4rs$8@dont-email.me>
<op.2vsqtnk8a3w0dxdave@hodgins.homeip.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 17 Oct 2024 23:21:59 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="9416ba48f1adcfe2127401957dfa62bf";
logging-data="3063758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18DWRcgos/acVy7LdQZkxIa"
User-Agent: Pan/0.160 (Toresk; )
Cancel-Lock: sha1:0dISK8ABgAGk2sAeaBiCQsCGXus=
View all headers

On Thu, 17 Oct 2024 13:28:25 -0400, David W. Hodgins wrote:

> What package has the ttyUSB0 udev rules on your system?

ldo@theon:~> grep -i ttyusb /lib/udev/rules.d/*
/lib/udev/rules.d/60-serial.rules:KERNEL!="ttyUSB[0-9]*|ttyACM[0-9]*", GOTO="serial_end"
ldo@theon:~> dpkg-query -S /lib/udev/rules.d/60-serial.rules
dpkg-query: no path found matching pattern /lib/udev/rules.d/60-serial.rules
ldo@theon:~> dpkg-query -S /usr/lib/udev/rules.d/60-serial.rules
udev: /usr/lib/udev/rules.d/60-serial.rules

That’s on Debian Unstable; Debian Stable will be the same, as should
most derivatives.

Subject: Re: sudo override
From: Eric Pozharski
Newsgroups: comp.os.linux.misc
Organization: A noiseless patient Spider
Date: Fri, 18 Oct 2024 07:51 UTC
References: 1 2 3 4 5
Path: eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: apple.universe@posteo.net (Eric Pozharski)
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Fri, 18 Oct 2024 07:51:07 +0000
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <slrnvh44rb.u8b.apple.universe@freight.zombinet>
References: <vemvk5$j4c$1@reader1.panix.com>
<sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me>
<vep9ip$2dact$2@dont-email.me> <op.2vrr2zawa3w0dxdave@hodgins.homeip.net>
Injection-Date: Fri, 18 Oct 2024 11:33:08 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="4a8be862e682c27448bd5795899c0e28";
logging-data="3416701"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/c9vLl2ELb1RN37gvnkbK5"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:kw1lmStDZ6FPCHeM8QKcwCGXvhs=
View all headers

with <op.2vrr2zawa3w0dxdave@hodgins.homeip.net> David W. Hodgins wrote:
> On Wed, 16 Oct 2024 17:01:13 -0400, Lawrence D'Oliveiro
> <ldo@nz.invalid> wrote:
>> On Wed, 16 Oct 2024 19:55:54 +0100, The Natural Philosopher wrote:
>>> On 16/10/2024 13:04, Anssi Saari wrote:

>>>> crw-rw---- 1 root dialout 188, 0 Oct 12 12:07 /dev/ttyUSB0
>>> [ that device does not exist on my installation...
>> Like any USB device, it only exists while the physical hardware is
>> plugged in.
> Plugging in the device will create the /dev entry only if the package
> modemmanager is installed. That's the package with the udev rules to
> create /dev/ttyUSB0 devices.

Correction. If upon insertion /dev/sr and /dev/sg appear then this is
manifestation of zero-config and then modemmanager (Was it
'usb-modeswitch' a decade ago? Darn, I'm so ignoring all the cool
modern toys.) is indeed required. However, clear usb-serial modems
exist, but those aren't popular.

*CUT* [ 2 lines 1 level deep]

--
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

Subject: Re: sudo override
From: vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups: comp.os.linux.misc
Organization: Samani Marions Panyaught NYS-13760-4251-019-USA
Date: Sun, 20 Oct 2024 00:46 UTC
References: 1 2 3 4 5 6
Path: eternal-september.org!news.eternal-september.org!feeder3.eternal-september.org!panix!.POSTED.2602:f977:0:1::3!not-for-mail
From: vjp2.at@at.BioStrategist.dot.dot.com
Newsgroups: comp.os.linux.misc
Subject: Re: sudo override
Date: Sun, 20 Oct 2024 00:46:34 -0000 (UTC)
Organization: Samani Marions Panyaught NYS-13760-4251-019-USA
Message-ID: <vf1jta$t2f$1@reader1.panix.com>
References: <vemvk5$j4c$1@reader1.panix.com> <sm0ed4gxnhm.fsf@lakka.kapsi.fi> <vep27q$2bpp9$14@dont-email.me> <vep9ip$2dact$2@dont-email.me> <op.2vrr2zawa3w0dxdave@hodgins.homeip.net> <slrnvh44rb.u8b.apple.universe@freight.zombinet>
Injection-Date: Sun, 20 Oct 2024 00:46:34 -0000 (UTC)
Injection-Info: reader1.panix.com; posting-host="2602:f977:0:1::3";
logging-data="29775"; mail-complaints-to="abuse@panix.com"
User-Agent: tin/2.6.3-20231224 ("Banff") (NetBSD/10.0_RC3 (amd64))
View all headers

THanks. I didn't have this problem ten years ago with USRobotics
on QUantian but am having it now with Connexant on CAELinux.

--
Vasos Panagiotopoulos panix.com/~vjp2/vasos.htm
---{Nothing herein constitutes advice. Everything fully disclaimed.}---

1

rocksolid light 0.9.8
clearnet tor