Re: [PHP] Shut down server

2002-06-14 Thread Rosen

Thanks,
but the idea is another user only to start and shutdown the server.

Any ideas ?

Thanks,
Rosen

Bruce Karstedt [EMAIL PROTECTED] wrote in message
00ea01c21339$e7856d60$4773d73f@c3">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:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 6:29 PM
 To: 'Rosen'; [EMAIL PROTECTED]
 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




RE: [PHP] Shut down server

2002-06-14 Thread Lazor, Ed

Could you restate this question?  Sorry, I don't understand what you're
asking.

 -Original Message-
 but the idea is another user only to start and shutdown the server.
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Shut down server

2002-06-14 Thread Rosen

Hi,
I want to make server on Linux Red Hat 7.2 to shutdown from WEB interface.
A'll not have any access to this server. Server will not be connected to
Internet - it's local for organization. I want one men from them only to
turn on computer and to shutdown server via WEB interface without any
administrative rights on server.

I tried to shut down server with exex(/sbin/poweroff) but nothing
happened!
Can someone tell me how I could make shut down the server via PHP command or
executing Linux command?
Is it possible ?

Thanks,
Rosen


Ed Lazor [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Could you restate this question?  Sorry, I don't understand what you're
 asking.

  -Original Message-
  but the idea is another user only to start and shutdown the server.



 This message is intended for the sole use of the individual and entity to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank you very
 much.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Shut down server

2002-06-14 Thread SenthilVelavan

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 [EMAIL PROTECTED] wrote in message
00ea01c21339$e7856d60$4773d73f@c3">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:[EMAIL PROTECTED]]
 Sent: Thursday, June 13, 2002 6:29 PM
 To: 'Rosen'; [EMAIL PROTECTED]
 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




RE: [PHP] Shut down server

2002-06-13 Thread Lazor, Ed

That all depends on what kind of server you're referring to.

 -Original Message-
 Hi,
 I tried to shut down my server with exex(/sbin/poweroff) but nothing
 happened!
 Can someone tell me how I could make shut down the server ?
 Is it possible ?
 
 Thanks,
 Rosen
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Shut down server

2002-06-13 Thread Rosen

The server is Linux Red Hat 7.2


Ed Lazor [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 That all depends on what kind of server you're referring to.

  -Original Message-
  Hi,
  I tried to shut down my server with exex(/sbin/poweroff) but nothing
  happened!
  Can someone tell me how I could make shut down the server ?
  Is it possible ?
 
  Thanks,
  Rosen



 This message is intended for the sole use of the individual and entity to
 whom it is addressed, and may contain information that is privileged,
 confidential and exempt from disclosure under applicable law.  If you are
 not the intended addressee, nor authorized to receive for the intended
 addressee, you are hereby notified that you may not use, copy, disclose or
 distribute to anyone the message or any information contained in the
 message.  If you have received this message in error, please immediately
 advise the sender by reply email and delete the message.  Thank you very
 much.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Shut down server

2002-06-13 Thread Lazor, Ed

This has serious security implications.  Research how to create a script on
your system.  Set it's sticky bit to run as a standard user that has
authorization to run the shutdown command using SUDO.  Make sure the script
works from within UNIX and then call the script from PHP using exec.

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 ?
 

This message is intended for the sole use of the individual and entity to
whom it is addressed, and may contain information that is privileged,
confidential and exempt from disclosure under applicable law.  If you are
not the intended addressee, nor authorized to receive for the intended
addressee, you are hereby notified that you may not use, copy, disclose or
distribute to anyone the message or any information contained in the
message.  If you have received this message in error, please immediately
advise the sender by reply email and delete the message.  Thank you very
much.   

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Shut down server

2002-06-13 Thread Bruce Karstedt

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:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 6:29 PM
To: 'Rosen'; [EMAIL PROTECTED]
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