FG

How to run a program as root without "sudo"?

Fresh3 days ago
Mar 15, 202652475 views
Confidence Score0%
0%

Problem

I have a certain binary program on OS X that can only be run as root. I'm tired of prepending each time I invoke it and typing the password, and would like it to automatically run as root when I invoke it regularly, without asking for a password. The program's owner is root and its group is wheel. …

Error Output

sudo

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to run a program as root without "sudo"?

Low Risk

A half solution to your problem: in the sudoers file, add the following: Then from the command line, you can type: and it will run the command without asking for your password. This command will run as root. Note, you will need to replace username w…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment