From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98235290327114.tru64-unix-managers.marc@archive.invalid> From: "Rost, Werner" Date: Fri, 16 Feb 2001 15:19:22 +0000 To: tru64-unix-managers Subject: SUMARY: shutdown by user other than root X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=98235290327114 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=20 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 =3D 0. Is it possible that=20 another user has UID =3D 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@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=20 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. =20 Calvin Coghlan [ccoghlan@ascensionhealth.org] Caution: Sometimes users run long jobs about weekend ... Mit freundlichen Gr=FC=DFen Werner Rost -------------------------------------------------- Werner Rost, Mannesmann-Boge GmbH Abt: KIR Tel: 0228/3825-420 Fax: 0228/3825-398 Email: werner.rost@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! ------------------------------------------------------------