Re: Simple way for web to execute root shell script.

Liste des GroupesRevenir à col misc 
Sujet : Re: Simple way for web to execute root shell script.
De : tnp (at) *nospam* invalid.invalid (The Natural Philosopher)
Groupes : comp.os.linux.misc comp.sys.raspberry-pi
Date : 29. May 2025, 12:14:09
Autres entêtes
Organisation : A little, after lunch
Message-ID : <1019fi2$3qn0v$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10
User-Agent : Mozilla Thunderbird
On 29/05/2025 08:07, Anssi Saari wrote:
druck <news@druck.org.uk> writes:
 
On 28/05/2025 08:58, The Natural Philosopher wrote:
On 27/05/2025 21:44, druck wrote:
It does work with smartcl, Not with lm-sensors
>
Sorry, picked up on the wrong part of the post.
>
lm-sensors wont work with external USB drives as it only knows about
things connected to the internal busses of a machine such as acpi and
i2c, and the Pi only had the latter.
 No. See for example here:
https://www.kernel.org/doc/html/latest/hwmon/drivetemp.html, the
drivetemp driver uses ATA commands to read temperatures from drives or
alternatively, using SMART attributes. lm-sensors either uses the
drivetemp kernel driver or just reads from /sys/class/hwmon.
 
I checked and drivetemp module is invoked in the kernel.
# zgrep -i temp /boot/config-6.12.25+rpt-rpi-2712
# CONFIG_SYSTEMPORT is not set
CONFIG_SENSORS_DRIVETEMP=m
# Temperature sensors
# end of Temperature sensors
But I have no idea how to access anything with it.

Which is why I said before, I find it odd if smartctl works and
drivetemp does not, although AFAiK no one has actually tried that in
this thread.
 
How does one 'use' drivetemp?

Unfortunately I don't have any recent USB HDs around. I do have an
USB-SSD case but don't have a spare SSD to put into it right now.
PiOS is always a little bit 'a road less debugged' than *x86...especially in terms of stuff that accesses hardware.
It reminds me of mainstream Linux 10 years ago. And hacking UDEV to get it to recognise a camera.
These days it JustWorks™
--
A lie can travel halfway around the world while the truth is putting on its shoes.

Date Sujet#  Auteur
23 May 25 * Simple way for web to execute root shell script.54The Natural Philosopher
23 May 25 +* Re: Simple way for web to execute root shell script.4Pancho
23 May 25 i+* Re: Simple way for web to execute root shell script.2Lew Pitcher
23 May 25 ii`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May 25 i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May 25 +* Re: Simple way for web to execute root shell script.7Lew Pitcher
23 May 25 i+* Re: Simple way for web to execute root shell script.2Lew Pitcher
23 May 25 ii`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May 25 i`* Re: Simple way for web to execute root shell script.4The Natural Philosopher
23 May 25 i `* Re: Simple way for web to execute root shell script.3Marc Haber
23 May 25 i  +- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May 25 i  `- Re: Simple way for web to execute root shell script.1Lawrence D'Oliveiro
23 May 25 +* Re: Simple way for web to execute root shell script.2John-Paul Stewart
23 May 25 i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May 25 +- Re: Simple way for web to execute root shell script.1Eli the Bearded
23 May 25 +* Re: Simple way for web to execute root shell script.23Rich
23 May 25 i`* Re: Simple way for web to execute root shell script.22The Natural Philosopher
24 May 25 i +* Re: Simple way for web to execute root shell script.2Rich
24 May 25 i i`- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May 25 i +- Re: Simple way for web to execute root shell script.1Theo
24 May 25 i +- Re: Simple way for web to execute root shell script.1Chris Elvidge
25 May 25 i `* Re: Simple way for web to execute root shell script.17Anssi Saari
25 May 25 i  `* Re: Simple way for web to execute root shell script.16The Natural Philosopher
25 May 25 i   +* Re: Simple way for web to execute root shell script.3Lawrence D'Oliveiro
29 May 25 i   i`* Re: Simple way for web to execute root shell script.2vallor
29 May 25 i   i `- Re: Simple way for web to execute root shell script.1The Natural Philosopher
26 May 25 i   `* Re: Simple way for web to execute root shell script.12Anssi Saari
26 May 25 i    +- Re: Simple way for web to execute root shell script.1The Natural Philosopher
27 May 25 i    `* Re: Simple way for web to execute root shell script.10druck
28 May 25 i     `* Re: Simple way for web to execute root shell script.9The Natural Philosopher
28 May 25 i      `* Re: Simple way for web to execute root shell script.8druck
29 May 25 i       +* Re: Simple way for web to execute root shell script.4Anssi Saari
29 May 25 i       i`* Re: Simple way for web to execute root shell script.3The Natural Philosopher
30 May 25 i       i `* Re: Simple way for web to execute root shell script.2Anssi Saari
30 May 25 i       i  `- Re: Simple way for web to execute root shell script.1The Natural Philosopher
29 May 25 i       `* Re: Simple way for web to execute root shell script.3The Natural Philosopher
29 May 25 i        `* Re: Simple way for web to execute root shell script.2Rich
29 May 25 i         `- Re: Simple way for web to execute root shell script.1The Natural Philosopher
23 May 25 +- Re: Simple way for web to execute root shell script.1druck
24 May 25 +- Re: Simple way for web to execute root shell script.1Lawrence D'Oliveiro
24 May 25 +* Re: Simple way for web to execute root shell script.6The Natural Philosopher
24 May 25 i+* Re: Simple way for web to execute root shell script.4Richard Kettlewell
24 May 25 ii+- Re: Simple way for web to execute root shell script.1The Natural Philosopher
24 May 25 ii`* Re: Simple way for web to execute root shell script.2Eli the Bearded
24 May 25 ii `- Re: Simple way for web to execute root shell script.1Richard Kettlewell
24 May 25 i`- Re: Simple way for web to execute root shell script.1Rich
24 May 25 +* Re: Simple way for web to execute root shell script.2Andrew Smallshaw
24 May 25 i`- Re: Simple way for web to execute root shell script.1Fritz Wuehler
26 May 25 +* Re: Simple way for web to execute root shell script.4Dominik Ałaszewski
26 May 25 i+* Re: Simple way for web to execute root shell script.2The Natural Philosopher
26 May 25 ii`- Re: Simple way for web to execute root shell script.1Lawrence D'Oliveiro
27 May 25 i`- Re: Simple way for web to execute root shell script.1c186282
4 Jun 25 `* Re: Simple way for web to execute root shell script.2Chris Narkiewicz
4 Jun 25  `- Re: Simple way for web to execute root shell script.1The Natural Philosopher

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal