<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 2, 2014 at 2:57 PM, Jonatan Lindblad <span dir="ltr"><<a href="mailto:mythtv@comhem.se" target="_blank">mythtv@comhem.se</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 2014-09-02 14:21, Daryl McDonald wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
On Tue, Sep 2, 2014 at 1:35 AM, Michael Watson <<a href="mailto:michael@thewatsonfamily.id.au" target="_blank">michael@thewatsonfamily.id.au</a> <mailto:<a href="mailto:michael@thewatsonfamily.id.au" target="_blank">michael@<u></u>thewatsonfamily.id.au</a>>> wrote:<br>
<br>
On 2/09/2014 1:28 PM, Daryl McDonald wrote:<br>
<br>
#%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh<br>
<br>
The line is commented out. Meaning is not in effect.<br>
<br></div><div class="">
daryl@daryl-A780L3C:~$ cd /media/daryl/10b4bdaf-d0f0-<u></u>4f4d-b003-8049f075c12a<br>
daryl@daryl-A780L3C:/media/<u></u>daryl/10b4bdaf-d0f0-4f4d-b003-<u></u>8049f075c12a$ sudo cat etc/sudoers.d/mythtv<br>
%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh<br>
daryl@daryl-A780L3C:/media/<u></u>daryl/10b4bdaf-d0f0-4f4d-b003-<u></u>8049f075c12a$ ls -l etc/sudoers.d/mythtv<br>
-r--r----- 1 root root 62 Aug 10 13:57 etc/sudoers.d/mythtv<br>
daryl@daryl-A780L3C:/media/<u></u>daryl/10b4bdaf-d0f0-4f4d-b003-<u></u>8049f075c12a$ cd ~<br>
daryl@daryl-A780L3C:~$ sudo gedit /etc/sudoers.d/mythtv<br>
</div></blockquote>
<br>
It is safer to use visudo to edit sudoers files since it performs sanity checks, and checks for parse errors.<br>
<br>
Unless you provide any arguments the /etc/sudoers file will be edited, but you can use -f to specify an alternate location:<br>
<br>
sudo visudo -f /etc/sudoers.d/mythtv<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Jonatan</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
mythtv-users mailing list<br>
<a href="mailto:mythtv-users@mythtv.org" target="_blank">mythtv-users@mythtv.org</a><br>
<a href="http://www.mythtv.org/mailman/listinfo/mythtv-users" target="_blank">http://www.mythtv.org/mailman/<u></u>listinfo/mythtv-users</a><br>
<a href="http://wiki.mythtv.org/Mailing_List_etiquette" target="_blank">http://wiki.mythtv.org/<u></u>Mailing_List_etiquette</a><br>
MythTV Forums: <a href="https://forum.mythtv.org" target="_blank">https://forum.mythtv.org</a></div></div></blockquote><div><br></div><div>OK, so "vi" is simply another text editor like "gedit"?</div>
</div><br></div></div>