Re: A reboot user

From: Jeff Vian (jvian10_at_charter.net)
Date: 05/01/04

  • Next message: Jay Daniels: "Re: NIC Selection"
    Date: Fri, 30 Apr 2004 21:50:21 -0500
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    
    

    Gary Stainburn wrote:

    >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.
    >
    >
    NOT.!!
    a suid root script that gets executed would be much safer for security.
    and in fact the script could do nothing more than "# telinit 6" for his
    task.

    >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)
    >
    >

    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Jay Daniels: "Re: NIC Selection"

    Relevant Pages

    • Re: Hacker activity?
      ... >login to a server, most as root but some are attempts to login to ... >telnet, all come from the same remote server, and all fail. ... >getting some odd cgi calls to a script on a secure ssl server. ... Make sure root cannot login to your system via ssh. ...
      (freebsd-questions)
    • Re: Limit desktop & start menu
      ... Create a login script that runs when users log into the TS, and map the R: ... persisitent "R" drive on the server itself and that may cure it. ...
      (microsoft.public.windows.terminal_services)
    • 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: A reboot user
      ... > I have a colocated server and when I have to get them to reboot it they ... > Is there a way I can create a user account that will reboot the server ... > on login? ...
      (Fedora)
    • Re: Slow TS logon from dumb terminals.
      ... Is a login from the console also slow? ... Do the users run a login script? ... if the Real-time protection component runs in every user session. ... No virus protection as only the server has s CD Rom/USB Access/Floppy. ...
      (microsoft.public.win2000.termserv.clients)