scott@prism.gatech.EDU (Scott Holt) (04/24/91)
Archive-name: unix/admin/opcom/1991-04-23 Archive: wuarchive.wustl.edu:/usenet/comp.sources.unix/volume20/opcom.Z [128.252.135.4] Original-posting-by: scott@prism.gatech.EDU (Scott Holt) Original-subject: Re: SHUTDOWN on AIX 3.1 Reposted-by: emv@msen.com (Edward Vielmetti, MSEN) In article <1991Apr17.130522.26957@uvm.edu> moore@emily.uvm.edu (Bryan Moore) writes: >I would like to give users on my system the ability to do a >'shutdown' from a $ prompt. I've tried setting up a script >which sets the users id to root and group id to system, and >then calls shutdown, but thi doesn't work. Can someone let >me know if this is possible, and if so how? You may wish to look into a program called opcom, written by Carel Braam. It allows members of a particular group to execute specified commands under a different user and group ID. Which commands can be executed, what the user/group ID will be and who can execute them is defined by a configuration file which the system administrator maintains. For example: /etc/shutdown : operator : root : daemon specifies that members of group operator can execute /etc/shutdown and have it run with real user ID root and real group id daemon. We use it to provide certain functions to our operations staff - who do not ordinarily have root access. It seems to work pretty well. I think you can find it in the FTP archives on uunet.uu.net. - Scott -- This is my signature. There are many like it, but this one is mine. Scott Holt Internet: scott@prism.gatech.edu Georgia Tech UUCP: ..!gatech!prism!scott Office of Information Technology, Technical Services -- comp.archives file verification wuarchive.wustl.edu -rw-rw-r-- 1 root archive 14405 Oct 23 1989 /usenet/comp.sources.unix/volume20/opcom.Z found opcom ok wuarchive.wustl.edu:/usenet/comp.sources.unix/volume20/opcom.Z