LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-06-2005, 01:44 PM   #1
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Rep: Reputation: 16
Script to shutdown remotely a server


Hi. I want to allow a user from a windows terminal to run a script or sth similar, so he/she can only shutdown a slack 10 server on the network.

I want this because a few days ago, in a dept of our company, we had a power down incident and the raid crashed. So I want to give the opportunity to a user to "shutdown -h now" the server without forcing him/her to login to a terminal.

Any hints? Thank you!

PS: It would be great if this could firewalled somehow, so it can be done only from a specific IP on the network.

Last edited by dtournas; 02-06-2005 at 01:45 PM.
 
Old 02-06-2005, 01:51 PM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
Why not set up a SSH account for the user on the particular server and give that user the power to issue the "shutdown" command? You can then lock down the particular IP address by placing it in the /etc/hosts.allow file.
 
Old 02-06-2005, 01:55 PM   #3
dtournas
Member
 
Registered: Aug 2003
Location: Charlotte, North Carolina
Distribution: Red Hat (and look-alike), SUSE (when drunk), Slackware (when mad)
Posts: 148

Original Poster
Rep: Reputation: 16
Thanks for the reply. That was the idea in the first place. Unfortunately, not all users are able to ssh from a terminal cause they don't even know how to ssh...

You can say that they are typical windows users. They can only click a button to do sth...
 
Old 02-06-2005, 02:26 PM   #4
uselpa
Senior Member
 
Registered: Oct 2004
Location: Luxemburg
Distribution: Slackware, OS X
Posts: 1,507

Rep: Reputation: 47
I believe that you can use PuTTY (= free Windows SSH client), with a .bat or .cmd, to do just that. If you add a shortcut to that batch file on their desktop, a double-click will do.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
backing up files remotely using a script depam Linux - Software 1 10-19-2005 12:59 AM
How to remotely shutdown a process darksoul04 Linux - Networking 6 09-11-2005 10:56 PM
Shutdown the System remotely via PHP-Script? linuxuser2005 Linux - General 2 08-30-2004 11:53 AM
RH: Trying to make script to remotely modifie mysql db. paulvl Linux - General 1 12-05-2003 10:08 AM
starting an xserver remotely by script ?? jdaniel Linux - General 3 09-22-2003 01:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration