[mythtv-users] fail to shut down

Jonatan Lindblad mythtv at comhem.se
Tue Sep 2 18:57:02 UTC 2014


On 2014-09-02 14:21, Daryl McDonald wrote:
> On Tue, Sep 2, 2014 at 1:35 AM, Michael Watson <michael at thewatsonfamily.id.au <mailto:michael at thewatsonfamily.id.au>> wrote:
>
>     On 2/09/2014 1:28 PM, Daryl McDonald wrote:
>
>         #%mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
>
>     The line is commented out.  Meaning is not in effect.
>
> daryl at daryl-A780L3C:~$ cd /media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a
> daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ sudo cat etc/sudoers.d/mythtv
> %mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
> daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ ls -l etc/sudoers.d/mythtv
> -r--r----- 1 root root 62 Aug 10 13:57 etc/sudoers.d/mythtv
> daryl at daryl-A780L3C:/media/daryl/10b4bdaf-d0f0-4f4d-b003-8049f075c12a$ cd ~
> daryl at daryl-A780L3C:~$ sudo gedit /etc/sudoers.d/mythtv

It is safer to use visudo to edit sudoers files since it performs sanity checks, and checks for parse errors.

Unless you provide any arguments the /etc/sudoers file will be edited, but you can use -f to specify an alternate location:

sudo visudo -f /etc/sudoers.d/mythtv

-- 
Jonatan



More information about the mythtv-users mailing list