On 10/29/23 04:02, Patrick O'Callaghan wrote:
On Sat, 2023-10-28 at 15:56 -0700, ToddAndMargo via users wrote:
>>> $ doas -u root "nvme smart-log /dev/nvme0n1"
>>> doas: Operation not permitted
>>
>> Try removing the quotes.
>>
>> poc
>
> $ doas -u root nvme smart-log /dev/nvme0n1
> doas: Operation not permitted
Does doas ask for your password (you as a user, not root)?
What happens when you use sudo (or 'su -c' - note that in this case
you'll need the quotes)?
What happens if use:
doas nvme ...
i.e. without the '-u root' (since root is the default).
poc
I am trying to get the information without having
to be root. And it does not have to come from the
nvme command either.
My goal is to do a libnotify popup when I log
into my desktop