Announcement

Collapse
No announcement yet.

Is it safe to run CLI programs with sudo?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Is it safe to run CLI programs with sudo?

    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.

    #2
    Yes. https://www.linkedin.com/pulse/linux...eet-frank-ober
    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

    Comment


      #3
      Thanks.

      Comment


        #4
        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.

        Please Read Me

        Comment

        Working...
        X