SUMARY: shutdown by user other than root

From: Rost, Werner <Werner.Rost_at_boge.mannesmann.de>
Date: Fri, 16 Feb 2001 16:19:22 +0100

Thanks to all, it is a great list. More than 20 answers!

Most of you suggested sudo.

I tried sudo - and it works fine.


http://www.courtesan.com/sudo
ftp://ftp.cs.colorado.edu/pub/sudo/




Other suggestions:


1. add a new user 'shutdown' with superuser privileges
   and perform /sbin/shutdown in the .login file


2. you could create a user shutdown and make his shell a
   script file that shuts down the system. You'd need to
   make the account UID/GID 0.

   Kurt Ludwig
   Systems Administrator API NetWorks Inc.
   www.api-networks.com

   My question: root has UID = 0. Is it possible that
                another user has UID = 0 too?


3. I'd create a shell script to check the user ID against
   a list of authorized users, then invoke the shutdown
   command, then put the script out there with root owner and suid.

   I've done a similar thing to allow access to some root functions by
   randomly-specified users.
   ---
   Bluejay Adametz, CFII, A&P bluejay_at_fujigreenwood.com
   Fuji Photo Film, Inc. +1 864 223 2888 x1369
   Greenwood, SC, USA


4. chmod +s /bin/shutdown
   That looks smart, but unfortunally it doesnt work.
   Messages is "NOT super-user"


5. The obvious answer is to give users 'x' (execute) on shutdown (either
   through group or other protection). I'm not sure whether that'd work
   and it's obviously dangerous.

   That looks smart, but unfortunally it doesnt work.
   Messages is "NOT super-user"


5. You can write a script that sudo to root to perform a system shutdown.
   Let the file/script be owned by root and excutable by group. Assign
   the user to that group.

   Write a "c" program to issue a system command for shutdown. Compile the
   program into binary.

   Hope this Help
   IvanHoe


6. You either use something like "sudo" (quite popular) or look into the
   "dop" (delegation of privilege) method integrated into CDE; there is
   a shutdown applet that's part of the CDE system admin menus, you can
   make that available if it's not already.. Under the application manager,
   go into system admin, then daily admin, and there is a "shutdown" button,
   I haven't tried it myself because I can "su" to root on my workstation.

   Dr.Tom Blinn


7. Set up cron to automatically shutdown the system at a certain time on
   Friday night. I would probably put this in a script to allow a more
   intelligent shutdown.
   Calvin Coghlan [ccoghlan_at_ascensionhealth.org]

   Caution: Sometimes users run long jobs about weekend ...









Mit freundlichen Grüßen
Werner Rost
--------------------------------------------------
Werner Rost, Mannesmann-Boge GmbH
Abt: KIR
Tel: 0228/3825-420
Fax: 0228/3825-398
Email: werner.rost_at_boge.mannesmann.de
Friesdorfer Str. 175, 53175 Bonn - Bad Godesberg
---------------------------------------------------



-----------------------------------------------------------
This Mail has been checked for Viruses
Attention: Encrypted Mails can NOT be checked !

***

Diese Mail wurde auf Viren ueberprueft
Hinweis: Verschluesselte Mails koennen NICHT geprueft werden!
------------------------------------------------------------
Received on Fri Feb 16 2001 - 19:48:44 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT