Re: A reboot user

From: Gary Stainburn (gary.stainburn_at_ringways.co.uk)
Date: 04/30/04

  • Next message: Alexander Dalloz: "Re: .htaccess files and apache"
    To: For users of Fedora Core releases <fedora-list@redhat.com>, WipeOut <wipe_out@users.sourceforge.net>
    Date: Fri, 30 Apr 2004 13:27:53 +0100
    
    

    On Friday 30 Apr 2004 1:21 pm, WipeOut wrote:
    > Hi,
    >
    > I have a colocated server and when I have to get them to reboot it they
    > just hit the power switch which can't be good for filesystems and
    > databases..
    >
    > Is there a way I can create a user account that will reboot the server
    > on login?
    >
    > This way I can give them a user account and they simply login with that
    > account and it reboots the server..
    >
    > I am guessing I need to create a login script or something similar but I
    > am not sure how to get the system to execute the script at login if that
    > is the way to do it..
    >
    > Thnaks..

    Try creating a passwd entry with a uid and gid of '0' (same as root) and set
    the path for the shell to be a program which simply calls shutdown with the
    relevent parameters.

    The program will be run when the user logs in, and the user will be logged out
    again as soon as the program exits.

    (Not tried it though)

    -- 
    Gary Stainburn
     
    This email does not contain private or confidential material as it
    may be snooped on by interested government parties for unknown
    and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Alexander Dalloz: "Re: .htaccess files and apache"

    Relevant Pages

    • Re: SBS Hangs for 4 plus hours
      ... offending file and rename - then restart the server - that service could not ... So when you can, please reboot the server and, when it ... > comes back up to a login prompt, ... > you look at what they're running under, it's Administrator (in other words, ...
      (microsoft.public.windows.server.sbs)
    • Re: Outlook Express starts by itself
      ... starting OE at the login screen. ... > Thanks, Lawrence, for suggesting that I create a new user account. ... Reboot ... >> disappears. ...
      (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
    • Re: network home folder not mapped correctly
      ... server was installed so that's not the issue. ... I have not been able to recreate the problem with a reboot. ... When the mapping is incorrect, ... Frequently when clients login to the domain from XP Pro computers ...
      (microsoft.public.windowsxp.general)
    • Re: How to get rid of old domain name without impacting current AD?
      ... They used to have a WinNT server as their PDC named for example "abc.com" ... However, when user's login to their system, the domain listed is still ... login to the same profile. ... When I'm looking at the user account in AD, ...
      (microsoft.public.windows.server.active_directory)
    • Re: Some beginner questions for configuring WTS in Windows Server 2003
      ... with the same user account, as they also share the same ... treated uniquely by the login of the database application. ... however Terminal Server does NOT ... anonymous accounts with the External Connector installed. ...
      (microsoft.public.win2000.termserv.clients)