| Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-30-2009, 07:26 PM
|
#1
|
|
Member
Registered: Feb 2009
Posts: 44
Rep:
|
User Shutdown Works from XFCE but not from KDE - Slackware12.2
Hello,
My personal desktop is an AMDk-7. It is loaded with Slackware12.2 and Fedora10. Both o/s are functional, although I have a long way to go to get them running well enough to turn an unsuspecting user loose on 'em.
Ordinary users (myself) are able to shutdown w/poweroff from XFCE in Slackware12.2 but not from KDE. It does not require sudo as I still have not made any additions.
Also, when I boot Fedora10 on the same hdd, ordinary users can shutdown and poweroff from the KDE gui.
I would like any explanations and also wonder if there must be something broken in the KDE that came with Slackware12.2.
Thank you.
M
|
|
|
|
03-31-2009, 03:32 AM
|
#2
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,183
|
Try adding yourself to the power group. Do this, as root:
Code:
usermod -a -G power yourusername
I think that should do it.
|
|
|
|
03-31-2009, 04:46 AM
|
#3
|
|
Senior Member
Registered: Sep 2004
Distribution: slackware
Posts: 1,687
Rep: 
|
It works for me. My user is in these groups:
users, lp, floppy, audio, video, cdrom, plugdev, scanner
Do you have any old KDE configuration files in your home directory?
Was this an upgrade or a fresh installation?
|
|
|
|
03-31-2009, 10:27 AM
|
#4
|
|
Member
Registered: Feb 2009
Posts: 44
Original Poster
Rep:
|
Not sure '-a' option
Hello brianL and rkelsen,
Thank you for the responses.
I get this output on input 'usermod -a -G power (myusername)'
'usermod: invalid option -- a' and I am not sure which operator? to replace it with.
I am running a fresh install of Slackware12.2 and also have a fresh install on the same drive of Fedora10.
edit:
I just checked using kuser, and myself and another user that is also unable to shutdown/poweroff are in the 'power' group.
Again, we are both able to shutdown/poweroff from XFCE gui, but not from KDE.
M
Last edited by mitchellray; 03-31-2009 at 10:41 AM.
Reason: additional info
|
|
|
|
03-31-2009, 11:07 AM
|
#5
|
|
LQ Newbie
Registered: Aug 2004
Distribution: Slackware
Posts: 11
Rep:
|
Lead...
Whoever may shutdown must also be able to run /sbin/shutdown
(that's what happens when you press that cute little button in the dialog)
Cheers
|
|
|
|
04-01-2009, 12:07 PM
|
#6
|
|
Member
Registered: Feb 2009
Posts: 44
Original Poster
Rep:
|
Permission appears to be there and XFCE gui allows
Hello rogan,
/sbin/shutdown -hP now
shutdown: you must be root to do that!
and
/sbin$ ls -l shutdown
-rwxr-xr-x 1 root root 16864 2008-04-02 19:40 shutdown*
Aren't these the appropriate permissions?
Again, XFCE gui in Slackware 12.2 allows the shutdown and poweroff by ordinary users.
KDE has the "session manager" which seems to suggest that a user could perform the command, but it does not seem to follow its own settings.
Interestingly, the apparently same version of KDE in Fedora10 on the same drive does allow the ordinary user shutdown/poweroff with no action taken to alter parameters (out of the box).
Thank you.
M
|
|
|
|
04-01-2009, 01:48 PM
|
#7
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,183
|
Are you booting into the default run-level 3, or have you changed it to 4?
|
|
|
|
04-02-2009, 11:09 AM
|
#8
|
|
Member
Registered: Feb 2009
Posts: 44
Original Poster
Rep:
|
INIT: entering: runlevel 3
Hello brianL,
Near the end of the boot process, the output indicates that the system is entering runlevel 3.
(the above title may not be exactly as the output syntax prints)
Maybe I am recanting superfluous information, the system can be shut down and powered off from the XFCE gui, although there is some output complaining about User not being root. The process completes.
I think, and maybe I'm mistaken, that it should not matter which gui I am using; I should still be able to get the same action from the same command (using the same shell?).
M
|
|
|
|
04-02-2009, 11:59 AM
|
#9
|
|
LQ 5k Club
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Laptop: Slackware 14.0 // Desktop: Slackware64 14.0 // Netbook: Slackware 14.0
Posts: 6,183
|
I've always edited /etc/inittab, and changed the default run level to 4 (to boot straight into KDE desktop). When you do that, you get the options to log out, restart, or shutdown, from the main menu. At level 3 I think you only get logout with KDE. Not sure whether it makes any difference from the shell or Konsole.
|
|
|
|
04-03-2009, 08:33 PM
|
#10
|
|
Member
Registered: Feb 2009
Posts: 44
Original Poster
Rep:
|
Change default to runlevel: 4
Hello brianL,
I edited inittab.
I changed default to runlevel: 4 and voila.
Now I boot directly to a login screen that gives choices of user (including root) as well as gui(s). Fantastic!
Thanks to all who input.
Mitchellray
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:21 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|