LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 03-18-2011, 10:46 AM   #1
trryhend
LQ Newbie
 
Registered: Oct 2007
Posts: 29

Rep: Reputation: 15
KDM does not allow xfce to shutdown


OS = Slackware 13.1
I'm normally a KDE user but tried xfce4 and found that it works nicely. I wanted to switch to it for a while.

I did find one particular problem:
When you try and end the session, you can Log Out but can not Restart or Shutdown. If you click on Restart or Shutdown it asks for password. Even after entering a valid password, it will not allow the action. (I tried user and root's passwords.) It says "Please enter your password." After entering the password it says, "Either the password you entered is invalid, or the system administrator disallows shutting down this computer with your user account."
(Before you ask; my user is in power group.)

I tinkered with it for a while and decided it must have something to do with KDM and so I switched my default runlevel to 3 and started xfce4 [via startx] and it worked as expected.

Next I tried using xdm instead of kdm and YES, it works as expected. I was able to Restart or Shutdown (no asking for password, it just does it.)

So; What is it about KDM that does not allow xfce4 to restart or shutdown?

BTW, it seems to work ok in -current, (or at least, someone who uses -current told me that he was able to shutdown or restart from xfce4 and he said that he was indeed running kdm). So it's apparently been fixed in our future release... so, again, what is it about kdm that is causing this anomily? Curious...
 
Old 03-18-2011, 12:34 PM   #2
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 293Reputation: 293Reputation: 293
Which groups are you in? You need to be in power group for this to work usually.
 
Old 03-19-2011, 06:06 PM   #3
trryhend
LQ Newbie
 
Registered: Oct 2007
Posts: 29

Original Poster
Rep: Reputation: 15
Yes, I'm in power group.

Any other suggestion(s)?
 
Old 03-19-2011, 06:26 PM   #4
hitest
Senior Member
 
Registered: Mar 2004
Location: Prince Rupert, B.C., Canada
Distribution: Slackware, OpenBSD
Posts: 4,275

Rep: Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587Reputation: 587
What other groups is your regular user a member of? I don't need a password to shutdown XFce from KDM; it works just fine here.
 
Old 03-21-2011, 07:52 PM   #5
Erik_FL
Member
 
Registered: Sep 2005
Location: Boynton Beach, FL
Distribution: Slackware
Posts: 801

Rep: Reputation: 247Reputation: 247Reputation: 247
XFCE uses a helper program to shut down or restart the system. You must add the helper program to the "/etc/sudoers" file.

Edit the file "/etc/sudoers" and add the following lines.

Code:
# Shutdown from XFCE4
%users	ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper
I made the change on my system and can shut down or restart from XFCE4.
 
Old 05-01-2011, 05:40 PM   #6
bmanth60
LQ Newbie
 
Registered: May 2011
Posts: 1

Rep: Reputation: 0
Thanks

Hi Erik_FL,

Thank you so much for the post, I was working with SLiM and had the same problem!

-bmanth60
 
Old 09-24-2011, 11:54 PM   #7
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Rep: Reputation: 44
Dont mean to high jack this thread but I just got the same problem on Slack 13.37 and googling brought me here...

After several months running 13.1 and upgraded to 13.37 about 3 months ago, I just started a few days ago to have this problem. I am not sure why after 28-36 months its happening... I get this error when I try to Suspend to RAM. It usually works. I know that if I reboot the problem will go away, but will come back at some point...

Anyways, adding

Quote:
# Shutdown from XFCE4
%users ALL=(root) NOPASSWD: /usr/libexec/xfsm-shutdown-helper
to /etc/sudoers generates a new problem. I get an error message saying:

Quote:
Failed to suspend session

Suspend and Hibernate are only supported through HAL, which is unavailable
?????
 
Old 09-25-2011, 08:37 PM   #8
lpallard
Member
 
Registered: Nov 2008
Location: Milky Way
Distribution: Slackware (various releases)
Posts: 970

Rep: Reputation: 44
I just tried to put my machine in suspend to RAM, and it worked. Really some kind of bug. Anyone has a clue hoe to pinpoint the problem?
 
  


Reply

Tags
kdm, restart, shutdown, xfce, xfce4


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
kdm shutdown- other sessions Bratmon Linux - Software 6 03-23-2010 03:40 AM
Xfce with KDM ??? phys Slackware 14 12-27-2008 08:31 AM
Kdm will not let me log out or shutdown J_Szucs Linux - General 3 05-27-2005 11:00 AM
poweroff reboot launcher for xfce w/ KDM? r_jensen11 Linux - Software 2 01-17-2004 05:00 PM
KDM+XFCE+Logout/poweroff/reboot menu? r_jensen11 Linux - Software 0 01-04-2004 07:46 PM


All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration