On 10/27/23 19:36, Samuel Sieb wrote:
On 10/27/23 18:29, ToddAndMargo via users wrote:
> Hi All,
>
> Fedora 38
>
> Any way to get this info without being root?
>
> Many thanks,
> -T
>
>
> # nvme smart-log /dev/nvme0n1
Have a root cron job dump it to a file?
Hmmmmm.
The device node is only accessible to root, so there's no way
around that.
You could give your user sudo access for that command.
Do not like sudo, but I may have to compromise.
You haven't said why needing root is a problem.
Run as a user:
$ nvme smart-log /dev/nvme0n1
/dev/nvme0n1: Permission denied