LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-08-2019, 03:16 PM   #16
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,702

Rep: Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245Reputation: 6245

User does not need to be in the wheel group. The user needs to be attached to a ConsoleKit session. ConsoleKit2 interacts with polkit and the polkit rule it installs allows the user to shutdown/suspend the computer without any elevated rights. As long as you have an active CK session.

In order to achieve this in runlevel 3, the KDE xinit script '/etc/X11/xinit/xinitrc.kde' calls the 'startkde' script as follows:
Code:
ck-launch-session startkde
In runlevel 4, the KDM takes care of creating a CK session when you login.
 
Old 10-08-2019, 07:49 PM   #17
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 6,199

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Quote:
Originally Posted by BW-userx View Post
isn't polkit attached to this, therefore user needs to be in the wheel group to get permissions to reboot and shutdown because them operations fall under root/admin rights and responsibilities, and not just every day users.
As Alien Bob mentioned, wheel is not the culprit. Based on a hunch and a recursive grep of /etc/, this group does not seem to be used by default for anything in Slackware (feel free to correct me if I'm mistaken!). If you add a user to it, you can then edit other files (like /etc/sudoers) to enable support for certain things, but anything in /etc/ pertaining to the wheel group seems to be commented out by default.

Your belief might be based on other distros that use the wheel group by default for certain administration type tasks.
 
Old 10-08-2019, 08:20 PM   #18
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: FreeBSD/Slackware-14.2+/ArcoLinux
Posts: 9,153

Rep: Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950Reputation: 1950
Quote:
Originally Posted by bassmadrigal View Post
As Alien Bob mentioned, wheel is not the culprit. Based on a hunch and a recursive grep of /etc/, this group does not seem to be used by default for anything in Slackware (feel free to correct me if I'm mistaken!). If you add a user to it, you can then edit other files (like /etc/sudoers) to enable support for certain things, but anything in /etc/ pertaining to the wheel group seems to be commented out by default.

Your belief might be based on other distros that use the wheel group by default for certain administration type tasks.
I knew it had something to do with polkit, wheel too is my default add on to group, and from way back xfce4 was having to having a user be in the wheel group. I basically posted that to try and give an idea of where to look. wheel and or polkit.. basically.

Last edited by BW-userx; 10-08-2019 at 08:22 PM.
 
  


Reply


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
what is the default powerstate (e.g. S3,S4,S5) for the command 'shutdown -hP' or 'shutdown -hH' or 'shutdown -h' badbetty Slackware 6 11-12-2017 12:18 AM
logout before shutdown with shutdown button in XFCE ta0kira Ubuntu 2 06-25-2011 04:57 AM
KDE Shutdown Button MTK358 Linux - Desktop 6 07-29-2010 08:02 AM
Shutdown button on kde logoff gone arubin Slackware 9 11-20-2006 01:58 AM
shutdown button missing in gnome bhar0761 Fedora 5 08-02-2005 10:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration