LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-04-2010, 08:55 PM   #1
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Rep: Reputation: 15
Remote shutdown windows pc from Linux ?


Hi all, i've been try to remote shutdown windows pc from linux box using
net rpc command cause that windows pc part of samba user server, but when i try this command (got from internet):
Code:
net rpc SHUTDOWN -C "test" -f -I xxx.xxxx.xxxx.xxxx -U user%passwd
it shows error
shutdown of remote machine failed
result was: WERR_ACCESS_DENIED

i've been try googling but the result not work for me like turn off the simple sharing on windows machine, etc.

Need advices please, sorry about this.

Thank's a lot.
 
Old 01-04-2010, 10:37 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
You also need remote shutdown privileges.

Do this from a script:
http://www.linuxforums.org/forum/red...linux-box.html

Or enter with a remote desktop.
 
Old 01-05-2010, 01:57 AM   #3
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Thank's for your reply Simon Bridge, do you mean the user account on win machines:
1. must have administrator account
2. user name on win machines which type is administrator privileges must same with account user samba
It is what i must to do? correct me if i'm wrong and Thank's a lot ^^.
 
Old 01-05-2010, 02:27 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Have a look at the script. It has a section for acquiring the correct permissions.

Basically, the remote user needs to be allowed to shut the machine down and the communication program has to allow this action (some programs restrict remote actions jic). Its been a while since I did this but I am sure I was able to shut down a W98 machine via vnc just by using the start menu.
 
Old 01-05-2010, 03:01 AM   #5
b-RAM
Member
 
Registered: Apr 2009
Distribution: OpenSuse, Slackware
Posts: 70

Original Poster
Rep: Reputation: 15
Thank's for the enlightment Simon Bridge, it's very help me ^^.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
shutdown linux via scripts from windows westverg General 10 06-28-2007 04:54 AM
Is there a way to easily shutdown a remote linux server with a shell script? bdb4269 Programming 7 01-26-2007 05:08 PM
Remote Shutdown of Windows using a linux box? bigdog0007 Linux - Networking 7 05-12-2005 11:07 AM
linux remote shutdown from win rcascapera Linux - Networking 3 11-28-2003 07:21 PM
How to shutdown a remote (windows) PC rkrijger Linux - Networking 3 04-10-2003 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration