Re: Shut down server

From: Date: Sat, 15 Jun 2002 04:35:23 +0000
Subject: Re: Shut down server
Groups: php.general 
Request: Send a blank email to php-general+get-102310@lists.php.net to get a copy of this message
Hello Rosen, You can try with visudo command in linux. For example if you want to give permission to user1 then give shutdown permission to that user using visudo command. you have to edit something like username ALL=(ALL) ALL Here the above user is assigned with all rights.When the above said user tries any commands then that command should starts with sudo.for example prompt # sudo shutdown. Hope this will help you.Let me know if you have any problem. regards, SenthilVelavan.P, KovaiTeam Softwares. Thanks, but the idea is another user only to start and shutdown the server. Any ideas ? Thanks, Rosen Bruce Karstedt <bkarstedt@prodigy.net> wrote in message news:00ea01c21339$e7856d60$4773d73f@c3... > This is a bad idea from a security standpoint. If your server is local, > login as root and type shutdown. If the system is remote telnet to the box, > login, su to root and type reboot. If you use shutdown remotely, there is no > way to restart the server. > > Bruce Karstedt > President > Technology Consulting Associates, Ltd. > Tel: 847-735-9488 > Fax: 847-735-9474 > > > -----Original Message----- > From: Lazor, Ed [mailto:ELazor@providence.org] > Sent: Thursday, June 13, 2002 6:29 PM > To: 'Rosen'; php-general@lists.php.net > Subject: RE: [PHP] Shut down server > > < clip > > > I am not a security expert. Check with others to get their opinion on > whether this is the best approach. > > > -----Original Message----- > > The server is Linux Red Hat 7.2 > > > > Can someone tell me how I could make shut down the server ? > > > > Is it possible ? > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#102310) next »