Shut down with other users logged in

Posted on 2008-11-09
Last Modified: 2013-11-12
When I want to shut down the computer while other users are logged in, I first have to log each one off.
How can I override this, ie have it so they get logged off automatically when shutting down?
Question by:allelopath
    LVL 12

    Expert Comment

    I don't know if this will work for an apple based computer or not, but you can try to manage the computer using a windows box.

    Start > Run > MMC
    File > Add/remove snap-in > Click the Add button > add Computer Management snap-in.

    Connect to the destination machine.  You can do this at any time by using the MMC window, expand Computer Management snap-in, right click computer management and click "connect to another computer...".

    Type in the name or IP of the computer and click OK.  Once connected to the computer, expand computer management once more, right click on computer management and select Properties.  Click the Advanced tab.  Click Settings within Startup and Recovery.  Click the Shut Down button.  Click the desired action and select "Always (could lose data)".

    Again, this may or may not work for the MAC OS.
    LVL 4

    Accepted Solution

    Open a terminal window -> Application -> Utilities -> Terminal

    at the $ prompt type the following

    $sudo /bin/bash
    <enter your password>
    #shutdown -r now
    (for reboot)
    #shutdown -h now
    (for halt)
    #shutdown -k now
    (to kick off everyone but the superuser)

    instead of now you can supply a time

    #man shutdown

    to view full usage.

    Works instantly.

    LVL 1

    Author Comment

    I was hoping for a way to do this in the GUI, but I guess that is not possible.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    Are you new to OS X?  This helpful advice could get you quickly up to speed if you are making the transition from windows or totally new to OS X. Finder gives you the visual connection between you and the files located on the hard drive of your A…
    Finder.   The ubiquitous, built-in feature of the Mac OS X platform, that never sleeps, can help get to any destination within your Mac OS X volume, allows you to customize your desktop, files and folders and so much more. As one of the primary…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now