You are not logged in.
Hey. I am new here. I have a question.. I can't shutdown or reboot PC from shutdown dialogue.
I am running on Debian SID 2.6.18 kernel, and on Xfce 4.3.99..
Offline
are you featured in /etc/sudoers for shutdown or all with nopasswd?
Before you criticize someone, walk a mile in their shoes
That way, if they get angry, they're a mile away and barefoot
Offline
what exactly lines I need in sudoers?
Offline
I have the same problem
Offline
are you featured in /etc/sudoers for shutdown or all with nopasswd?
What lines I need in sudoers ?
Offline
# Members of the admin group may gain root privileges
%admin ALL= NOPASSWD: ALL
gives privileges to all in admin group. Just an example.
Offline
You need something like this:
%users ALL = NOPASSWD:<prefix>/libexec/xfsm-shutdown-helper
Use visudo for adding the sudo rule.
Offline
Thanks guys, it works..
my sudoers has this line
# User alias specification
%users ALL = NOPASSWD:/usr/sbin/xfsm-shutdown-helper
Offline
Hey, I forgot to try it.. but I can choose restart or shutdown, but it wants password (root and user passwd not work)
Offline
its "/usr/libexec/xfsm-shutdown-helper" for 4.4
Offline
Now it works.. Thanks guys
my sudoers
Aurora:/home/bright# cat /etc/sudoers
# /etc/sudoers
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
# Host alias specification
# User alias specification
bright ALL=(root) NOPASSWD:/usr/sbin/xfsm-shutdown-helper
# Cmnd alias specification
# User privilege specification
root ALL=(ALL) ALL
Offline
I cant write to it and im using the root terminal
Offline
I cant write to it and im using the root terminal
type visudo logged as root, and write these lines
user ALL=(root) NOPASSWD:/usr/sbin/xfsm-shutdown-helper
where user means your account, which do you want to allow to shutdown computer..
REMARK: xfsm-shutdown-helper is in /usr/sbin only in Debian distro.. if you have another distro, you need to
replace /usr/sbin/xfsm-shutdown-helper to /usr/libexec/xfsm-shutdown-helper
Offline
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 558.41 KiB (Peak: 575.26 KiB) ]