Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Need to stop users from rebooting

  1. #1

    Question Need to stop users from rebooting

    Hi, I have a handful of openSUSE 11.4 machines that I allow users to use the GUI for web surfing and writing documents and I am meanwhile running scientific computing jobs in the background. Every now and then, someone clicks "shutdown", "reboot", or "hibernate" and ruins my afternoon.

    I've searched Google and these forums for ways to prevent a normal user from shutting down the system, but so far haven't had any luck in finding a solution. I have found instructions for just about every other Linux OS, except openSUSE though.

    These machines are running LXDE, but my preferred solution wouldn't depend on the particular desktop solution in use.

  2. #2
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Need to stop users from rebooting

    On Thu, 16 Jun 2011 19:36:03 +0000, quantamm wrote:

    > These machines are running LXDE, but my preferred solution wouldn't
    > depend on the particular desktop solution in use.


    If you want to lock down the desktop, then the desktop environment is an
    integral part of the decision on how to restrict the interface. You do
    this differently in LXDE than in GNOME than in KDE, etc.

    There are a couple of things that puzzle me about your request as well -

    1. How does someone shutting down a machine ruin your afternoon? It
    should be a matter of just turning the machine back on, no?

    2. Are you restricting access to the physical PC itself as well - or how
    are you going to prevent them from powering the machine off with the
    power switch? (Don't think that'll happen? I worked in a University
    computer lab and had students turn off machines that had signs over the
    monitor that said "Server - DO NOT POWER OFF" and cardboard taped over
    the power toggle switch (PS/2 systems).

    Jim

    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to stop users from rebooting

    On 2011-06-16 21:53, Jim Henderson wrote:
    > On Thu, 16 Jun 2011 19:36:03 +0000, quantamm wrote:
    >
    >> These machines are running LXDE, but my preferred solution wouldn't
    >> depend on the particular desktop solution in use.


    I would hack the runlevel scripts. For example, if a certain file exists or
    does not exists, abort halting.

    But before, in file "/etc/sysconfig/displaymanager" try adjusting this:

    # Determine who will be able to shutdown or reboot the system in kdm
    # and gdm. Valid values are: "root" (only root can shutdown), "all"
    # (everybody can shutdown), "none" (nobody can shutdown from
    # displaymanager), "auto" (follow
    # System/Security/Permissions/PERMISSION_SECURITY to decide: "easy
    # local" is equal to "all", everything else is equal to "root"). Note
    # that remote user can never shutdown in GDM.
    #
    DISPLAYMANAGER_SHUTDOWN="auto"
    ## Path: Desktop/Display manager
    ## Type: string(Xorg)
    ## Default: "Xorg"



    > There are a couple of things that puzzle me about your request as well -
    >
    > 1. How does someone shutting down a machine ruin your afternoon? It
    > should be a matter of just turning the machine back on, no?


    No.

    The job he is running in the background is halted without saving the data -
    if it can save the data before it finishes.


    > 2. Are you restricting access to the physical PC itself as well - or how
    > are you going to prevent them from powering the machine off with the
    > power switch? (Don't think that'll happen? I worked in a University
    > computer lab and had students turn off machines that had signs over the
    > monitor that said "Server - DO NOT POWER OFF" and cardboard taped over
    > the power toggle switch (PS/2 systems).


    Ouch! :-(

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  4. #4

    Default Re: Need to stop users from rebooting

    Quote Originally Posted by quantamm View Post
    Hi, I have a handful of openSUSE 11.4 machines that I allow users to use the GUI for web surfing and writing documents and I am meanwhile running scientific computing jobs in the background. Every now and then, someone clicks "shutdown", "reboot", or "hibernate" and ruins my afternoon.
    This is not possible. If normal users click "shutdown" or "reboot" either it will not work or they will be asked for the root password. Take your users out of the wheel group and change the root password!

    If a user types "shutdown -r now" in a terminal, he should see the following message:

    Absolute path to 'shutdown' is '/sbin/shutdown', so running it may require superuser privileges (eg. root).

    and nothing else should happen.

  5. #5
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,743

    Default Re: Need to stop users from rebooting

    1. How does someone shutting down a machine ruin your afternoon? It
    should be a matter of just turning the machine back on, no?
    He is running them in the background:
    I am meanwhile running scientific computing jobs in the background.
    I guess when someone stops the system when you are three hours in a four hour calculation saying "ruin my afternoon" is a nice remark.

    I founf something in YaST > Security and users > Secirity center (or similar wording). Startup configuration. About Ctrl-Alt Del and the KDM shutdown option.

    I guess you have to search for al the holes. And in the end hendersj is correct. They will even try to pull out the power cord when they think fit. Only thing is to put a computer in the good locked computer room and only allow remote access (as in the good old days ).
    Henk van Velden

  6. #6
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: Need to stop users from rebooting

    On 2011-06-16 23:06, hcvv wrote:
    > I guess you have to search for al the holes. And in the end hendersj is
    > correct. They will even try to pull out the power cord when they think
    > fit.


    For which the cure is "fire" >;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.4 x86_64 "Celadon" at Telcontar)

  7. #7
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Need to stop users from rebooting

    On 06/16/2011 09:36 PM, quantamm wrote:
    >
    > I've searched Google and these forums for ways to prevent a normal user
    > from shutting down the system


    this is the surefire way:

    - write a note saying something like "Do not shut down, hibernate,
    sleep, Ctrl-Alt-Delete, press the power button or unplug the machine"

    - get a BIG stick and use it to beat the living daylights out of one or
    two, in front of all users..

    (or go though a tedious process of changing permissions/scripts/voodoo
    so that only root can do the things you don't want a user to do---but,
    as mentioned they can still unplug or press the power button!!)

    --
    dd
    http://is.gd/bpoMD

  8. #8
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Need to stop users from rebooting

    On 06/16/2011 11:37 PM, DenverD wrote:

    > - get a BIG stick


    sorry, i forgot to give the real answer: i think you are looking for
    some version of a "kiosk mode", but i've never done it, see here for
    hints: http://preview.tinyurl.com/6zfcqyg

    yipee: http://en.opensuse.org/Kiosktool

    --
    dd
    http://is.gd/bpoMD

  9. #9
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Need to stop users from rebooting

    On Thu, 16 Jun 2011 20:50:07 +0000, Carlos E. R. wrote:

    >> There are a couple of things that puzzle me about your request as well
    >> -
    >>
    >> 1. How does someone shutting down a machine ruin your afternoon? It
    >> should be a matter of just turning the machine back on, no?

    >
    > No.
    >
    > The job he is running in the background is halted without saving the
    > data - if it can save the data before it finishes.


    Ah, makes sense, I somehow completely missed the part about background
    computing jobs.

    >> 2. Are you restricting access to the physical PC itself as well - or
    >> how are you going to prevent them from powering the machine off with
    >> the power switch? (Don't think that'll happen? I worked in a
    >> University computer lab and had students turn off machines that had
    >> signs over the monitor that said "Server - DO NOT POWER OFF" and
    >> cardboard taped over the power toggle switch (PS/2 systems).

    >
    > Ouch! :-(


    Yeah, not fun having all the network systems shut down because someone
    powered the server off. (We weren't allowed a secure room for the server
    at that point - that changed after several students lost their work when
    one of them powered the server off because they didn't have a login
    prompt).

    Jim
    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  10. #10
    Join Date
    Aug 2008
    Location
    Brazil
    Posts
    3,234

    Default Re: Need to stop users from rebooting

    kiosk mode + electrified (BOFH style) power button & wall socket should do the trick.

    Tip: For electrifying search wikipedia for "cattleprod".

    (sometimes I scare even myself)

    P.S.: For those literal-minded, the above *is* a joke. Or isn't it?

Page 1 of 3 123 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •