[Ubuntu] Run App as Root Without a Password

less than 1 minute read

Sometimes, there is need of launching an app as root. For example, Vmware requires the root privilege when it needs to use physical hard drive. Also, Sublime for example, it needs to be opend as root when we need to modify a file written as a root.

We can launch them from terminal with sudo, but it is inconvinient when we work with GUI.

Here, we specify which app to be always opened with root privilege:

$ sudo visudo

add following line:

[USERNAME] ALL = NOPASSWD: [/path/to/app]

Leave a Comment