[mythtv-users] fail to shut down
Daryl McDonald
darylangela at gmail.com
Wed Sep 3 13:11:58 UTC 2014
On Sep 3, 2014 12:11 AM, "Mark Perkins" <perkins1724 at hotmail.com> wrote:
>
>
>
> On 3 Sep 2014, at 2:36 am, "Daryl McDonald" <darylangela at gmail.com> wrote:
>
>>
>> On Sep 2, 2014 8:21 AM, "Daryl McDonald" <darylangela at gmail.com> wrote:
>> >
>> >
>> >
>> >
>> > On Tue, Sep 2, 2014 at 1:35 AM, Michael Watson <
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.
>> >>
>> >>
>> >> _______________________________________________
>> >> mythtv-users mailing list
>> >> mythtv-users at mythtv.org
>> >> http://www.mythtv.org/mailman/listinfo/mythtv-users
>> >> http://wiki.mythtv.org/Mailing_List_etiquette
>> >> MythTV Forums: https://forum.mythtv.org
>> >>
>> >
>> > 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
>> >
>> > (gedit:3033): Gtk-WARNING **: Calling Inhibit failed:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.gnome.SessionManager was not provided by any .service files
>> >
>> > (gedit:3033): Gtk-WARNING **: Calling Inhibit failed:
GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name
org.gnome.SessionManager was not provided by any .service files
>> > daryl at daryl-A780L3C:~$ ls -l /etc/sudoers.d/mythtv
>> > -r--r----- 1 root root 62 Sep 2 08:15 /etc/sudoers.d/mythtv
>> > daryl at daryl-A780L3C:~$ sudo cat /etc/sudoers.d/mythtv
>> > %mythtv ALL = NOPASSWD: /sbin/shutdown, /usr/bin/setwakeup.sh
>> > daryl at daryl-A780L3C:~$
>> >
>> > Many thanks, this looks better, now to testing, and grandkids, I'll
report later.
>> >
>> The good news is that the machine shut itself down ten minutes after
implementing the above. The bad news is I'll be retesting all my Udev and
local/bin, etc. now that I understand the significance of the "/"
regardless of which directory I am in.
>>
>> _______________________________________________
>
>
> So just to clarify perhaps, the significance of that leading / is it
refers to the root partition. So no matter what directory you are in a
reference to /usr/bin/ will always go to exactly the same place -
/usr/bin/. A reference to usr/bin/ is relative to your current directory,
so if you are in /home/ then it will go to /home/usr/bin/ (if it exists) or
if you are in /var/ then it will go to /var/usr/bin/ or if you are in /tmp/
it will got to /tmp/usr/bin/ and so on.
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Thanks, got it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20140903/9a30c9b8/attachment.html>
More information about the mythtv-users
mailing list