LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-05-2019, 07:47 AM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Slack Current: XFCE4 no shutdown, suspend,switch user permissions w/sudo rights


I have not used xfce4 in a long while. but I do remember if I have sudo rights it just gives me the ability to do more than just logout of my session without any other adjustments to the system needed to gain them rights.

User created, and uses xfce4 where root privileges are needed to gain permissions to reboot, and shut down system. User is given sudo (no passwd). This is using that little message box that comes up and gives user an option to do theses things when selecting to logout etc...

Why is it not working?

Last edited by BW-userx; 01-05-2019 at 07:49 AM.
 
Old 01-05-2019, 09:34 AM   #2
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
root premissions is only needed when using the command shutdown or reboot from console. I will work with control alt del, to reboot or use the power button to shutdown.
my user are in thous groups
Code:
users lp wheel floppy audio video cdrom plugdev power netdev scanner
It works for me, I don't know what you did. Maybe you need to be in the group power?
I dont think you should need sudo just to reboot or power off, but if you want it configured that way.. its up to you

Last edited by marbangens; 01-05-2019 at 09:41 AM.
 
Old 01-05-2019, 09:45 AM   #3
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by marbangens View Post
root premissions is only needed when using the command shutdown or reboot from console. I will work with control alt del, to reboot or use the power button to shutdown.
my user are in thous groups users lp wheel floppy audio video cdrom plugdev power netdev scanner
let me check my groups, I did give them defaults and added wheel, but too giving more thought to this, I might have a corrupted home, (if that might have anything to do with it).

users lp wheel floppy audio video cdrom input plugdev power netdev scanner

I'm running stuff, so I cannot hit the three button salute to see what happens, but I know I can push my power button then it shuts down. It is just that when selecting logout from the menu that all of the other options are shaded out, whereas they use to never be when a user has sudo permissions(?) from what I remember. At least that was my logical assumption that was the reason behind the options being shaded out because it is a 'normal' user and they are not to be allowed to reboot, or shut down the system. Because in reality even though Linux maybe being used as a one person Operating System, it is still a server Based system and all of the rules still apply.

A user without root privileges has no rights to shutdown or reboot the system, therefore the options are shaded out, unless, in polkit they have been modified(?) otherwise, for example with mounting drives, ie. automount for USB ports. Because root is the only one that is suppose to have rights to mount and unmount drives as well. So the same principles apply to rebooting and shunting down the system.

Last edited by BW-userx; 01-05-2019 at 09:48 AM.
 
Old 01-05-2019, 10:06 AM   #4
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
I deleted myself from my wheel group then added myself back
now I have the same problem... those buttons that used to shutdown and reboot the computer are grayed out
maybe this is a bug. this xfce is really old
 
Old 01-05-2019, 10:10 AM   #5
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
if you dont use xfce with startx, if you use an login manager are the problem still there?
if it is I think this is a serious problem. im not using current its 14.2

Last edited by marbangens; 01-05-2019 at 10:14 AM.
 
Old 01-05-2019, 10:24 AM   #6
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,136

Rep: Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307Reputation: 7307
Just to test it, I just created a new user and selected all the defaults, and started Xfce. Log out, Reboot, Shutdown and Suspend are all there and working as they should.
Based on that it looks like the problem maybe self-inflicted?
 
Old 01-05-2019, 10:38 AM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
right now I am using startx. as I usually use this for the default desktop upon first installation of Slack before I install or go to something else, like installing e16 as this is what I am using now, whereas it use to be WindowMaker. XFCE4 it is easier to get wifi started with less steps involved. ie installing a system tray, starting it, then starting the applet, then selecting the provider.

nevertheless, this too is not DVD install iso, it is the one that alien bob made of current, though that should have nothing to do with this. I do not remember ever having an issue with this regardless if I use startx or a login manager. this might turn out to be just a quirk, and go away. After I get a chance to 'play with this' as it stand at the moment I am running something, and I don't want to have to stop it, then start it all over again at the moment. Putting that off until this is solved. This is a lower priority then what I am running.

the version XFCE is whatever is the latest that slack installs and updates. Version 4.12 dis by Slackware is in the about gui.
 
Old 01-05-2019, 11:17 AM   #8
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
Quote:
Originally Posted by cwizardone View Post
Just to test it, I just created a new user and selected all the defaults, and started Xfce. Log out, Reboot, Shutdown and Suspend are all there and working as they should.
Based on that it looks like the problem maybe self-inflicted?
do what I did and tell me, yes it works if you dont leave you sudo group while you logged into xfce. dont do it if you dont want to brake this. yes you can cal it self inflicted if you would know. and it can be ignored. if you dont know then it could be a problem

Last edited by marbangens; 01-05-2019 at 11:19 AM.
 
Old 01-05-2019, 03:54 PM   #9
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
Hey I tested with KDM and there is no problem I can reboot shutdown from xfce,s log out menu.
So this is just when we use startx or startxfce4, its a strange behavior but its not a problem cus we can shutdown/reboot after we log out
 
Old 01-05-2019, 04:03 PM   #10
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
that is your option.
 
Old 01-05-2019, 05:48 PM   #11
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
Quote:
Originally Posted by BW-userx View Post
that is your option.
opinion? Yes and what is yours my friend?
 
Old 01-05-2019, 06:09 PM   #12
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
No, it should work if one has privileges to it, it is more convent. call it lazy or time management.

btw I don't know what i did, but I ended up rebooting and then it worked. sooo... time management is now in play. cheers!
 
Old 01-05-2019, 06:14 PM   #13
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
There are certain features of XFCE which work depending on the session manager used for Init4 login. If you use KDM or AlienBob's SDDM v15 then you should find that the power down, switch user, and suspend will work. If you use startX from Init3 or XDM from Init4 they won't work. Some have reported that if you use LDM that it will work, I don't know because I don't have LX on my system. My test are on 14.2 x64. Since KDM is slated to be replaced, hopefully by SDDM, it might make sense to ask AlienBob if he has worked out any bugs with the latest version of SDDM. He can probably provide more information about SDDM and also if he has those XFCE functions working in his -current LIVESLAK versions. HTH Cheers, BrianA_MN
 
Old 01-05-2019, 09:23 PM   #14
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I've always used the dvd iso install, and whenever I've ever used xfce4 I have never had it not work, using startx or login a manager, lxdm, this was AlienBob current iso, and I just seen that it wasn't working with this install. as I've only installed slack using AlienBob iso two or three times now, as of late, and this was the only time I've noticed it not working, but too, I switched to fluxbox on my other installs, because network manager is already set up as an executable and all I did was it ctrl f2 and start nm-applet, got my wifi up and finished setting up.
 
Old 01-06-2019, 07:08 AM   #15
marbangens
Member
 
Registered: Aug 2012
Location: sweden
Distribution: Slackware, Fedora
Posts: 118

Rep: Reputation: Disabled
I got them back too, I didn't do anything...
I edited /etc/set_rlimits.conf
Okej I agree this should just work, or at least be the same so one know what to expect.
there is something unstable going on here.
 
  


Reply

Tags
rebooting, shutdown, xfce4



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
can't suspend, hibernate or switch-user from xfce4 panel johnpuppa Slackware 6 02-06-2018 10:41 PM
current - xfce4-power-manager error messages on suspend/resume moesasji Slackware 8 01-04-2016 11:12 PM
sudo : removing rights to run all commands for a particular user amit.kanade1983 Linux - Security 1 03-20-2014 02:57 PM
[SOLVED] "'user' has no sudo rights. This will be reported" textillis Linux - Newbie 6 05-15-2013 06:30 AM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM

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

All times are GMT -5. The time now is 02:36 PM.

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
Open Source Consulting | Domain Registration