Re: reboot/shutdown menu entries for non-GNOME/KDE users


On my system, I use following commands, it needn't root privilege:


dbus-send --system --dest=org.freedesktop.Hal  \
/org/freedesktop/Hal/devices/computer  \


dbus-send --system --dest=org.freedesktop.Hal  \
/org/freedesktop/Hal/devices/computer  \

I think other system (eg. Fedora, Ubuntu), should be OK.

>>>>> Christopher Roy Bratusek <zanghar freenet de> writes:

    > Hi all, I just added reboot/shutdown menu entries for non
    > GNOME/KDE users

    > root-menu -> session -> [here]

    > here are the instructions how to setup sudo to let non-root users
    > be able to call `shutdown' (only applies to `shutdown' binary, no
    > other one):

    > (also in README.IMPORTANT)

    > reboot/shutdown from root-menu ******************************

    > The sawfish root-menu has a session sub-menu which allows you to
    > reboot and/or shutdown your machine. If you use GNOME or KDE, no
    > additional work by you is required. But if you use sawfish
    > standalone, you have to make sure that you're allowed to execute
    > `shutdown', there are several ways to achieve that, the suggested
    > approach is to use sudo combined with a group called shutdown:

    > ;; add a new group called `shutdown' groupadd shutdown

    > ;; add user to the `shutdown' group adduser misterx shutdown

    > ;; add the group `shutdown' to sudoers visudo
    >   ;; add the following: %shutdown ALL=(root) NOPASSWD:
    > /sbin/shutdown

    > That's it, now everyone in the shutdown group can do it!

    > Chris

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]