<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Sep 4, 2013 at 3:57 PM, Bill Meek <span dir="ltr">&lt;<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div class="im">On 09/04/2013 02:32 PM, Daryl McDonald wrote:<br>

...<br>
</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I think I need to make one more correction, I backspaced the &quot;.tmp&quot; suffix<div class="im"><br>
off the file name, hit enter and was asked if I wanted to overwrite the<br>
existing file, and remembering the other directory, different location, I<br>
chose no and saved it as mythtv.3, see terminal output:<br>
daryl@daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv.3<br>
%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh<br>
daryl@daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv<br>
daryl@daryl-A780L3C:~$<br>
If necessary, do I use a &quot;sudo mv&quot; command to rename it? Or can I reference<br>
it as named?<br>
</div></blockquote>
<br>
First, I&#39;d type:<br>
<br>
    ls -l /etc/sudoers.d<br>
<br>
to see if any other files crept in there. I believe you started with<br>
none (other than README.) So, check first.<br>
<br>
Based on Karl&#39;s reply and yours, you already have the proper<br>
name, but it has nothing in it.<br>
<br>
You should end up with just the README and the new file. The output<br>
should look like this for the mythtv file:<br>
<br>
    -r--r-----   1 root root   380 Mar 29 15:21 mythtv<br>
<br>
in other words, owned by user and group root. And read only<br>
by them. Obviously the number of characters and timestame<br>
will be different from mine.<br>
<br>
So remove the mythtv.3 file and use visudo to correct the<br>
real one.<div class=""><div class="h5"><br>
<br>
-- <br>
Bill<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></div></div></blockquote><div><br></div><div>Well I think I have it, and it probably interests me more than you, but I&#39;m posting it anyway:</div>
<div><br></div><div>daryl@daryl-A780L3C:~$ ls -l /etc/sudoers.d</div><div>total 8</div><div>-r--r----- 1 root root   0 Sep  4 12:51 mythtv</div><div>-r--r----- 1 root root 752 Sep  4 12:14 README</div><div>-r--r----- 1 root root 814 Aug 31 11:30 README~</div>
<div>daryl@daryl-A780L3C:~$ sudo visudo -f /etc/sudoers.d/mythtv</div><div>visudo: /etc/sudoers.d/mythtv.tmp unchanged</div><div>daryl@daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv</div><div>%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh</div>
<div>daryl@daryl-A780L3C:~$ </div><div><br></div><div>The level of accomplishment that a student achieves is a direct reflection of the quality of his teachers. Thanks to Bill, Karl, Stefan, Roger, Chris, Yann, and the entire list, </div>
<div><br></div><div>Daryl</div></div><br></div></div>