How do I make a User login shutdown my box?

From: Stuart Halliday (StuartH_at_ecs-tech.com)
Date: 09/27/04

  • Next message: Stuart_Weaver_at_ElementK.com: "Re: How do I make a User login shutdown my box?"
    Date: Mon, 27 Sep 2004 11:02:57 +0100
    To: redhat-list@redhat.com
    
    

    I've got RedHat 8 on a Athlon box and I'd like a user logon to perform a shutdown of the box.

    I was advised to do the following:
    I've added a user called 'Sleep' and added this user to the root group via the User Manager program and made its login shell /sbin/shutdown in the /etc/passwd.

    I've added in the users directory 2 lines in the .bashrc of:
    PATH=$PATH:/sbin
    export PATH
    as I understand it this path isn't usually in a users path.

    I added the user sleep to the /etc/shutdown.allow file as well.

    But when I logon via the logon screen as user 'sleep', the picture goes black and then comes back again!

    I tried pressing ctrl-alt-del at the logon screen but a wee box pops up asking for the root password to halt or reboot.

    Any idea what else I need to do?

    If any kind and knowledgeable person could guide me, I would welcome that. :-)

    -- 
    Stuart Halliday
    -- 
    redhat-list mailing list
    unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe
    https://www.redhat.com/mailman/listinfo/redhat-list
    

  • Next message: Stuart_Weaver_at_ElementK.com: "Re: How do I make a User login shutdown my box?"

    Relevant Pages

    • Samba PDC - WinXP Issues
      ... I have installed and configured samba on a redhat 8.0 box to act as a ... server string = Samba PDC running %v ... logon drive = H: ...
      (RedHat)
    • Re: X server crashed
      ... kantai wrote: ... redhat 9 gui, but recompiled ... doesnt take me to the command prompt logon either. ...
      (linux.redhat)
    • Help for samba ver. 3.00 and RedHat 9
      ... i have problem with samba ver. ... and RedHat 9. ... I see Pc RedHat in my Netword Resource of Windows, but when i click on it ...
      (alt.os.linux.redhat)
    • X server crashed
      ... redhat 9 gui, but recompiled ... doesnt take me to the command prompt logon either. ... including the Xconfigurator but my redhat doesnt seem to recognize that ...
      (linux.redhat)
    • Re: temporary ftp-account
      ... stig wrote: ... > ftp, but not terminal (or any other logon) logon? ... I think redhat 8.0 comes with it alreay setup. ...
      (linux.redhat.misc)