Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-10-28 14:54:50

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

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

#2 2006-10-28 15:39:33

thehundredthone
Member
Registered: 2004-02-23
Posts: 32

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

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

#3 2006-10-28 15:53:21

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

what exactly lines I need in sudoers?

Offline

#4 2006-10-28 23:19:36

metalmodman
Member
Registered: 2006-10-09
Posts: 8

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

I have the same problem

Offline

#5 2006-10-29 07:31:04

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

thehundredthone wrote:

are you featured in /etc/sudoers for shutdown or all with nopasswd?

What lines I need in sudoers ?

Offline

#6 2006-10-29 07:31:40

fatcat
Member
From: FI
Registered: 2004-05-11
Posts: 32

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

# Members of the admin group may gain root privileges
%admin  ALL= NOPASSWD: ALL

gives privileges to all in admin group. Just an example.

Offline

#7 2006-10-29 10:08:33

Nick
Dev
From: ~
Registered: 2005-02-17
Posts: 1,143
Website

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

You need something like this:

%users ALL = NOPASSWD:<prefix>/libexec/xfsm-shutdown-helper

Use visudo for adding the sudo rule.

Offline

#8 2006-10-29 10:59:30

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

Thanks guys, it works..

my sudoers has this line

# User alias specification
%users ALL = NOPASSWD:/usr/sbin/xfsm-shutdown-helper

Offline

#9 2006-10-29 14:19:51

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

Hey, I forgot to try it.. but I can choose restart or shutdown, but it wants password (root and user passwd not work)

Offline

#10 2006-10-29 15:52:00

TomE
Member
Registered: 2005-02-05
Posts: 132

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

its "/usr/libexec/xfsm-shutdown-helper" for 4.4

Offline

#11 2006-10-29 19:39:14

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

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

#12 2006-10-29 22:49:59

metalmodman
Member
Registered: 2006-10-09
Posts: 8

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

I cant write to it and im using the root terminal

Offline

#13 2006-10-30 15:43:41

root.uid0
Member
Registered: 2006-10-28
Posts: 7

Re: Xfce 4.3.99.1 -- can't shutdown or reboot PC from shutdown dialogue

metalmodman wrote:

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

Board footer

Powered by FluxBB