[SOLVED]Disable Shutdown and Reboot from XFCE

Hi all
I would like to disable the shutdown and reboot buttons from XFCE (4.10) or to do disable shutdown/reboot systemwide.
I searched for specific xfce instructions and all i could find was using xfconf-query[1] and afaik it can only disable hibernate and suspend buttons
[1]http://forum.xfce.org/viewtopic.php?id=4781
Last edited by boriscougar (2012-09-11 21:51:22)

@nadman10
it had no change to remove my users from the power group
@2ManyDogs
Creating that file (/etc/xdg/xfce4/kiosk/kioskrc) and setting which users could shutdown solved the problem
Thanks for your time

Similar Messages

  • XFCE - Shutdown and Reboot buttons greyed-out (SOLVED)

    This issue cropped up for me a couple of weeks ago.  Just sat down to try and find a solution.  Followed several suggestions from several posts to no avail.
    Finally discovered that the syntax for achieving this in "/etc/sudoers" has evidently changed.
    This is what I got from the XFCE site: http://forum.xfce.org/viewtopic.php?pid=21331 and is very similar to what's in the Arch Wiki, https://wiki.archlinux.org/index.php/Al … o_Shutdown. So I had been using the following line in /etc/sudoers and it had been working:
    %users mylaptopname=NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper
    At some point in an XFCE upgrade the path to "xfsm-shutdown-helper" changed to "/usr/lib/xfce4/session/xfsm-shutdown-helper"
    I changed the path to "xfsm-shutdown-helper" but that didn't solve the problem.
    Finally I tried this in /etc/sudoers:
    %users  ALL=(ALL)       NOPASSWD: /sbin/shutdown -h now,/sbin/reboot
    And all the usual options in the shutdown menu re-appeared.
    Hope this helps someone.
    (Edited to show the link to the the XFCE forums and the Wiki.)
    Last edited by whatshisname (2011-11-25 16:09:31)

    Replying to my own post because of what I've discovered since I first posted this.
    Most importantly, the fix which I thought had fixed this problem didn't really work.  I was snookered into thinking it had.  But I've found another solution which appears to be working now, thus this post.
    Here's what I've found.
    I had no login/display manager on my laptop.  I was auto-logging into my desktop with this setting in /etc/inittab:
    x:5:once:/bin/su myusername -l -c '/usr/bin/startx >/dev/null 2>&1'
    The snooker alluded to above was this:  If I booted to a command line and issued "startx" to start XFCE, I would have the shutdown and reboot buttons available on the logout dialog.
    But if I booted directly into the desktop, I didn't.  It's taken me a while to figure out that this is what was going on.
    Even though my old setup had worked for the almost 2 years I've been using Arch and XFCE, some upgrade somewhere in  recent months prevented it from working any longer.
    My final fix was to install a login manager, in my case, lxdm.  And set it to auto log me into my desktop.
    I now have the expected reboot and logout menus.
    Hope this helps someone.  This has been a bear to figure out.

  • Xfce shutdown and reboot disabled with startxfce4

    Hello.
    I try to fix twinview with my nvidia xorg.conf .And run over this kind of issue.
    From the beginning with xfce i only have a logout button no shutdown and reboot.(i can live with that)
    I start with startxfce4.
    In my xinitrc from wiki    exec ck-launch-session startxfce4  and i have dbus in /etc/rc.conf
    But when i start with startx instead all the buttons are there. I can live with that to .
    An explaination why startx working and startxfce4 not ?? Can it be a bug somewhere?
    Last edited by freddie (2011-02-20 10:01:23)

    lockheed  you could always shutdown like this from wiki, thats what i do.
    https://wiki.archlinux.org/index.php/Al … o_Shutdown
    I have all suggestions from from this thread. And i not use any display manager.
    That was more of a surprice that i got shutdown, restart, hibernate, sleep with startx instead of startxfce4. I dont know if more xfce users can do this.
    And for me i dont need to have shutdown, restart, hibernate, sleep in the panel.More curious why startx works and startxfce4 not like i say in my first post.
    Last edited by freddie (2011-02-20 12:36:17)

  • [SOLVED] XFCE shutdown and reboot buttons only dump out to prompt

    Recently, after an update, the XFCE shutdown and reboot buttons began not working as expected.  Both are present, and I can click them.   They seem to try to do what they should, XFCE does terminate, but I am dumped out to a shell prompt rather than the shutdown or reboot happening.   What might be a possible cause of this behaviour that I can check and correct?
    Thanks,
    Bill
    Last edited by wallenpb (2012-11-20 21:00:19)

    Are you running systemd or still a sysv/initscript setup?
    If it is the latter take into account that consolekit has been dropped. Therefore, as far as I understand it, you are not 'authenticated' and thus not allowed to either shutdown or reboot.
    Consider switching to systemd and a good start would be to comply with the 1st step of the systemd installation featured in the wiki to regain control of shutdown/reboot. Afterwards start investigating for the rest as initscripts support has ended.

  • Systemd - kdm - xfce session: shutdown and reboot disappears randomly

    I use systemd and kdm as login manager; my desktop is XFCE.
    Immediately after login, if I click the logout button applet in the xfce panel, I can access all the options (shutdown, reboot, etc).
    But sometimes, after a while during the session, the shutdown and reboot option simply disappear - only logout works. If I log out to KDM and then again log in, they reappear.
    Does anyone have a clue about this?

    Just FYI the wikis were updated:
    Note: slim is ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must no longer include ck-launch-session in your .xinitrc or slim.conf login_cmd.
    https://wiki.archlinux.org/index.php/Sl … vironments
    SLiM is also ConsoleKit capable since version 1.3.3. Unless you happen to run an old version, you must not use --with-ck-launch from your .xinitrc or slim.conf login_cmd.
    https://wiki.archlinux.org/index.php/Xfce#Manually

  • [SOLVED] Run script on systemd shutdown and reboot

    Hello!
    I am trying to log uptime on shutdown and reboot with no success.
    I create the file /usr/lib/systemd/system/uptime.service:
    [Unit]
    Description=/etc/rc.local.shutdown Compatibility
    ConditionFileIsExecutable=/etc/rc.local.shutdown
    DefaultDependencies=no
    After=rc-local.service basic.target
    Before=shutdown.target
    [Service]
    Type=oneshot
    ExecStart=/etc/rc.local.shutdown
    StandardInput=tty
    RemainAfterExit=yes
    [Install]
    WantedBy=shutdown.target
    /etc/rc.local.shutdown:
    [jribeiro@arkosta ~]$ ls -l /etc/rc.local.shutdown
    -rwxr-xr-x 1 root root 107 Out 24 12:42 /etc/rc.local.shutdown
    [jribeiro@arkosta ~]$ cat /etc/rc.local.shutdown
    echo "$(date) - $(/usr/bin/uptime | sed 's/.*up \([^,]*\), .*/\1/')" >> /home/jribeiro/registo_de_uptime
    Any ideas?
    Last edited by joseribeiro (2014-10-25 19:57:59)

    I altered the uptime unit file:
    [jribeiro@arkosta ~]$ cat /usr/lib/systemd/system/uptime.service
    [Unit]
    Description=/etc/rc.local.shutdown Compatibility
    Before=shutdown.target
    [Service]
    ExecStart=/bin/true
    ExecStop=/etc/rc.local.shutdown
    RemainAfterExit=yes
    [Install]
    WantedBy=shutdown.target
    Then I started the uptime service manually:
    [jribeiro@arkosta ~]$ sudo systemctl start uptime
    I checked the 'registo_de_uptime' file:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    After that I rebooted my system.
    I checked the 'registo_de_uptime' file, again:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    Sáb Out 25 19:44:27 WEST 2014 - 3 min
    Everything seems to be alright. I wanted to make the ultimate test.
    With that in mind I rebooted the system.
    I checked the 'registo_de_uptime' file, once more:
    [jribeiro@arkosta ~]$ cat /home/jribeiro/registo_de_uptime
    Sáb Out 25 19:43:31 WEST 2014 - 2 min
    Sáb Out 25 19:44:27 WEST 2014 - 3 min
    No success...
    It works when I start the service manually and in the right next reboot, after that it won't work.
    Here is the journal's ouput:
    [jribeiro@arkosta ~]$ sudo journalctl -b -0 -u uptime
    -- Logs begin at Sex 2014-10-24 22:02:03 WEST, end at Sáb 2014-10-25 20:05:29 WEST. --
    By the way:
    [jribeiro@arkosta ~]$ sudo systemctl status uptime
    ● uptime.service - /etc/rc.local.shutdown Compatibility
    Loaded: loaded (/usr/lib/systemd/system/uptime.service; enabled)
    Active: inactive (dead)
    Last edited by joseribeiro (2014-10-25 19:07:32)

  • HT5390 have a Mac mini server in the data center no physical access. Is it possible to configure a remote "console" that allows shutdown  and reboot remotely ?

    A mini mac used for building sits in the data center normally we access via VNC network connection.
    I want to have "console" access to shutdown and reboot system.
    Reason. Updated to Mountain Lion OS X from 10.7.x and lost VNC connections, now host is down with no physical access.
    Alternate is to call data center and see if someone can cycls the power ?

    As mentioned by Linc there is no 'lights out' management for the Mac mini (or any current Mac). If the Mac is still running you can initiate a reboot via the GUI or commandline. If however it is completely crashed then there is a solution you could consider which is to get a managed power distribution strip. With this the power strip has its own network connection and lets you remotely turn off (and on) individual power sockets. This would then let you 'hard reboot' the Mac mini even if crashed.
    See http://www.apc.com/products/resource/include/techspec_index.cfm?base_sku=ap7921& tab=features

  • Nano 7 auto shutdown and reboots after playing videos?

    Hello,my nano 7 is very new, and i just tried to sync videos into it today. when i tried to play them, it would automatically shutdown and reboot.Anyone know how to solve this or have similar problems?

    Okydoky a new fascinating bug has been found!
    I now relabeld all songs with no album with a "no album" tag. I thought I could handle that way the problem with the "no album bug", well I thought. Now all the songs are shown in the display but I can't play all songs through because the player hangs up. When I select just one album to play through it works fine.
    *thumbs up* great mp3 player Apple! *thumbs up*
    Windows XP Pro

  • Shutdown and reboot logging

    Is there any file that keeps shutdowns and reboots track? or
    i should use wtmpx?

    Unia wrote:
    Which one did you install? You have to run it before you can see the icon:
    $ gnome-power-manager
    or
    $ xfce4-power-manager
    Add it to whatever startup script you use to have it launch at boot.
    Note: a power manager won't give you a shutdown dialog AFAIK. At least gnome-power-manager doesn't.
    ...Y'know, I really should've actually tried adding it to my xinitrc! I stupidly assumed that because running it via gmrun or a shell didn't bring up an icon, that adding it to my xinitrc wouldn't make any difference! Thanks a lot Unia
    EDIT: Okay... so I jumped the gun a bit, I tried adding gnome-power-manager and xfce4-power-manager to my xinitrc and both did nothing
    Last edited by Starfall (2011-05-26 18:18:04)

  • Had to erase hd and reboot from time machine.  Now login password does not work

    Had to erase hd and reboot from time machine.  Now login password does not work

    Stick the OS X 10.6 install disk and reboot the computer holding c down.
    Second screen in is a Utilities menu with Password Reset, try that.

  • Shutting down and rebooting from xfce4 (SOLVED)

    I am wanting to shut down and reboot my system via xfce4. right now the two buttons are grayed out. I tried added myself to the power group by doing
    gpasswd -a username power
    That didn't seem to do anything at all. On the wiki, it talks about using dbus and hal (as an alternative to doing the sudo method) but i already have dbus and hal started by default and the two buttons are still grayed out.
    if there is already a message like this please guide me there. Any help would be appreciated.
    CORRECTION: adding myself to the "power" group did work.
    Last edited by theringmaster (2007-09-12 17:49:24)

    zenlord wrote:
    Strange - I used the sudo-hack and it worked for me. But after it stopped working, I saw the new instructions and enabled both hal and dbus and voila, everything worked.
    I did not add myself to the sys-group, so it should be something else. Did you install the whole xfce4-package or did you select certain packages? check if '# /etc/rc.d/hal restart' and '# /etc/rc.d/dbus restart' change anything...
    Zl.
    Fyi: i installed xfce4 and xfce4-goodies. I'll try your codes now.

  • Kernel Power - Event ID 41 - Task Category 63 (spontaneous improper shutdowns and reboots)

    I have been having consistent power offs/reboots lately, and im at my wits end about how to fix them.
    It always seems to happen when im playing a high end game (Guild Wars 2, Mirrors Edge, etc.). 
    I havent experienced it while just browsing or doing basic work, or while playing lower intensity games that hog less resources.
    The computer screen goes black, it reboots and i get the "windows has had an improper shutdown" kind of message.
    Usually after playing the game for an hour at the least, though its happened 2-3 hours into the game as well.
    I checked temps, and they are all normal,
    Ive also attempted updating drivers, and downgrading from any beta drivers i was using, and none of that seemed to affect it.
    I checked event viewer,
    And right before this shutdown i get the critical error "Kernel-Power" "Event ID 41" Task Category 63"
    this is the XML given to me in the details:
    - <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
    - <System>
    <Provider
    Name="Microsoft-Windows-Kernel-Power" Guid="{331C3B3A-2005-44C2-AC5E-77220C37D6B4}" />
    <EventID>41</EventID>
    <Version>2</Version>
    <Level>1</Level>
    <Task>63</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8000000000000002</Keywords>
    <TimeCreated
    SystemTime="2012-09-02T04:55:51.116009800Z" />
    <EventRecordID>28689</EventRecordID>
    <Correlation
    />
    <Execution
    ProcessID="4" ThreadID="8" />
    <Channel>System</Channel>
    <Computer>Owner-PC</Computer>
    <Security
    UserID="S-1-5-18" />
    </System>
    - <EventData>
    <Data Name="BugcheckCode">0</Data>
    <Data Name="BugcheckParameter1">0x0</Data>
    <Data Name="BugcheckParameter2">0x0</Data>
    <Data Name="BugcheckParameter3">0x0</Data>
    <Data Name="BugcheckParameter4">0x0</Data>
    <Data Name="SleepInProgress">false</Data>
    <Data Name="PowerButtonTimestamp">0</Data>
    </EventData>
    </Event>
    If anyone has any suggestions as to what could be going wrong, or things to check it would be greatly appreciated.
    Ive looked around at others solutions and tried whats helped others and it hasnt done much so far.
    it seems like this is a very broad problem, with no unspecific fix in most cases.

    Hi,
    This scenario usually indicates a problem with the hardware. Or, the driver can cause this problem. To help isolate the problem, check the following items: 
    1. Overclocking: Disable overclocking to see whether the issue occurs when the system is run at the correct speed.
    2. Check the memory: Verify the memory by using a memory checker. Verify that each memory chip is
    the same speed and that it is configured correctly in the system.
    3. Power supply: Make sure that the power supply has enough wattage to appropriately handle the
    installed devices. If you added memory, installed a newer processor, installed additional drives, or added external devices, such devices can require more energy than the current power supply can provide consistently.
    4. Overheating: Check whether the system is overheating by examining the internal temperature of
    the hardware.
    5. Defaults: Use system defaults, and run the system. 
    If you see that the computer generates a Stop error that contains a BugcheckCode value that is not reported in an event ID 41, change the restart behavior for the computer. To do this, follow these steps:
    1. Right-click My Computer, and then click Properties.
    2. Click Advanced system settings.
    3. Click the Advanced tab.
    4. In the Startup and Recovery section, click Settings.
    5. Click to clear the Automatically restart check box.
    For more information, please refer to this.
    http://support.microsoft.com/kb/2028504#method3
    Kim Zhou
    TechNet Community Support

  • My ipad turns in but will not boot up. screen stays blank. I've tried resetting it and rebooting from itunes. It says it is done but the screen still stays blank. The apple icone will show up intermittetly.

    I turned on my ipad after charging it and the screen went blank. I tried the home button and on off button and that did not help. I went to iTunes and rebooted the ipad and restored it and it asked me to reboot from the ipad but the screen is still blank. It will go to a blue screen if I hit the on/off button. What else is there to check?

    If you restored the iPad, there is nothing else to check. I suggest that you make an appointment at an Apple Store Genius Bar and let them evaluate your iPad.

  • Shutdown and Reboot without going root

    Is there a way I can use the reboot or poweroff commands without using sudo or root?  Or is this a bad idea?
    Last edited by Falcata (2008-09-04 00:19:30)

    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    That makes sense, and is in line with what I figured was going on.  With NOPASSWD which commands would be executed w/out asking for a password?  How would this be more "secure" than using chmod +s on halt and reboot?  It seems that both ways accomplish the same thing in the end, I am just trying to understand why one is better than the other.
    moljac024 wrote:
    mcmillan wrote:
    My question:  What is the difference between 'chmod +s halt' and NOPASSWD for shutdown as you suggested?  I am not familiar with NOPASSWD.
    NOPASSWD is specified when you configure sudo, so some commands will be executed without asking for your users password. This is probably why it wasn't working for your menu, the computer was waiting for a password but there wasn't a way to display that request or enter it in.
    Exaclty. So you could specify the NOPASSWD parameter for the shutdown command and sudo will just do it without asking for the password. You should have an example of how to use that in your sudoers file. If not, then
    man sudo
    Please excuse my ignorance, but how is this better than chmod +s, which allows my user to use it w/out sudo?  It seems as though one lets ME use sudo w/out a password, the other lets ME use the command w/out sudo.  What is the benefit to using sudo without a password, other than not having to physically type the password?
    Last edited by monstermudder78 (2008-09-04 23:13:40)

  • HP pavilion DV6 1030us shutdown and reboot spontaneously

    I bought a HP pavilion DV6 1030us in June 2009, and the Bios was updated to the latest version F24A.
    However, during the notebook running, it will sunddenly shutdown and restart again.
    Such unexpected shutdown just looks like loss of power suddenly, and happens randomly, at least I can not find a rule.
    For most cases, such shutdown comes  without blue screen, and it is operating system- independant.  I tried to install windows 7 64bit, windows 7 32bit, vista 64 bit, xp 32bit, all OS has such problem.
    I dont know whether other users with this model has such problem. I tired everything I can do, still can not solve the problem.
    I suspect the Bios has some problem. I hope HP will release a new one quite soon.
    btw, if I update the BIOS, will it erase the old BIOS completely first, then write into the new one?
    Thanks for all your attention!
    This question was solved.
    View Solution.

    Same issue here

Maybe you are looking for

  • To display a sapscript layout by cliking a Button

    Hi Friends Given a sapscript. When i execute the script prog the output should be displayed as a report first and when we click the button PRINT the same report should be displayed in script layout . But now iam able to disply only the header . unabl

  • Advice on upgrading to SSD for Mac Pro (optimized for AfterEffects & Photoshop)

    Hello, I'm an animator (I use AfterEffects CS5, but will be upgrading to CC soon) and I'm going to start work on a new AE project in a few months for an animated film that will be very demanding (lots of different shots -- meaning multiple projects,

  • Report MCI8-Cost analysis

    In cost ananlysis report I am not able to see the total actual costs after the total estimated costs. What might be the reason?

  • Lvc_t_styl in dynamic catalog

    hi i created a programm with dynamic table and dynamic catalog how can i put in field catalog the table lvc_t_styl ?   DATA : it_content  TYPE REF TO data.    FIELD-SYMBOLS : <itab> TYPE STANDARD TABLE.    DATA : ls_fieldcat TYPE lvc_s_fcat.  celltab

  • Cannot Activate Photoshop CS3 Extended???

    Hi, I cannot activate my copy of Adobe Photoshop CS3 Extended, after coming across a previous thread regarding this issue (Re: CS3 Retail Box. Key Won't Work) I contacted support but after 3 representatives they all claim to not be able to validate t