Reputation
1,643
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
2 7 8
Impact
~143k people reached

  • 0 posts edited
  • 0 helpful flags
  • 16 votes cast
Jun
26
awarded  Great Answer
Jun
12
comment How do I run specific sudo commands without a password?
@StanKurdziel I tried with this line on Mac OS X Yosemite and it worked fine: mgd ALL=(root) NOPASSWD: /var/root/test. I am user mgd and ALL means "from all hosts". /var/root/test is a simple "Hello World" shell script with permissions: -rwx------ 1 root wheel 27 12 Jun 09:54 /var/root/test. I made no other changes to the system.
May
11
awarded  Yearling
Apr
8
awarded  Famous Question
Feb
27
revised How do I run specific sudo commands without a password?
Removed double use of "Note" and clarified syntax of commands in sudoers file
Dec
26
comment How do I burn the Ubuntu ISO on Mac OS X Lion?
Works like a charm. A small correction: /dev/disk3s0 should be /dev/disk3s1 above.
Oct
2
comment What is the CVE-2014-6271 bash vulnerability (Shellshock) and how do I fix it?
You mention 4.1-2ubuntu3.1 as safe, but 4.1-2ubuntu3.4 has been released fixing CVE-2014-7186 and CVE-2014-7187. See launchpad.net/ubuntu/+source/bash/4.1-2ubuntu3.4
May
11
awarded  Yearling
Feb
26
awarded  Guru
Aug
13
awarded  Good Answer
May
11
awarded  Yearling
Feb
4
awarded  Notable Question
Oct
23
accepted bind mounting read-only using fstab on Ubuntu?
Sep
25
awarded  Enlightened
Sep
25
awarded  Nice Answer
Sep
18
awarded  Popular Question
Jul
16
awarded  Commentator
Jul
16
revised How do I run specific sudo commands without a password?
Added description of correct permissions and how to use pkexec to fix problems.
Jul
16
revised How do I run specific sudo commands without a password?
Also use visudo to edit /etc/sudoers.d files as correctly suggested in comment.
Jul
16
revised How do I run specific sudo commands without a password?
Merged edit into the original answer