Re: Creating account with shutdown only functionality

From: Erwin Moller (since_humans_read_this_I_am_spammed_too_much_at_spamyourself.com)
Date: 02/25/04


Date: Wed, 25 Feb 2004 13:01:51 +0100

Jon Bowyer wrote:

> Hi,
>
> Not sure if this is the right group for this question, please let me
> know if not.
>
> I am using WS2.1 and need to create a restricted user account that
> will just initiate a shutdown or reboot as soon as the user logs on,
> it needs to be quite secure and not allow the user to be able to do
> anything else? Is this possible, how do I go about it?
>
> It would be good if there could also be a dialogue of some sort saying
> "Are you sure, Y/N", along those lines.
>
> The logon will be a gui (Gnome).
>
> Thanks
>
> Jon

Hi Jon,

On most distros the command: init 6
will reboot the machine.
You need of course root-access to do this.
(sudo will do)
I am not sure init 6 will be the right way for all dirstro's, it just
depends on how you configured your box.

I think you should just experiment with it and find out if it suits your
needs.

if you want a reboot every time a user logs in, you could put the command
into his/her profile that loads for that particular user.

Regards,
Erwin Moller



Relevant Pages

  • Re: Iexplore.exe - Application error
    ... Thanks for the valuable info Jon. ... "Jon Kennedy" wrote: ... > Tutorial on how to use HijackThis: ... Reboot does not clear. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Cable broadband, wired router and iLamp
    ... You do need to reboot the virgin box every time you switch ... I'll get that LInksys Jon mentioned anyway. ... bellajonez at yahoo dot co dot uk ...
    (uk.comp.sys.mac)
  • Re: Screen fade to white
    ... Jon B wrote: ... for the browsing and iTunes duties when suddenly a couple of thin grey ... wobbly, reboot, fine. ...
    (uk.comp.sys.mac)
  • Re: IE6 smooth scolling becomes unchecked after reboot
    ... Thanks Jon. ... the DWORD value returned to zero again after a reboot. ... and had to create a new DWORD since it wasn't there, but that didn't help IE6 either. ... Marcel ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • RE: PLEASE stop nagging us to reboot!!!!
    ... We have the machine scheduled for a reboot at night - but don't need the nags ... reading all the post, I thought Jon should get a life, until MisterSinister's ... Have a big warning appear before the install begins that says "Your system ... Or have the Windows Update icon appear in the systray as a grinning skull ...
    (microsoft.public.windowsupdate)