I want to use nvme-cli but it only works with sudo for some reason, is it ok to do this? I got it from the Ubuntu repository.
Announcement
Collapse
No announcement yet.
Is it safe to run CLI programs with sudo?
Collapse
This topic is closed.
X
X
-
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
-
Smart that you asked. That's why forums like this one exist. A bit more info for you:
The reason nvme-cli need sudo (root level) is because it directly accesses a hardware device. Only root can access hardware directly.
IMO, generally the exist of a command line version of a program, either along side a GUI version or by itself, hints that it might require sudo. It is never recommended to run any GUI program with sudo.
- Top
- Bottom
Comment
Comment