LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remote shutdown windows pc from Linux ? (https://www.linuxquestions.org/questions/linux-newbie-8/remote-shutdown-windows-pc-from-linux-779835/)

b-RAM 01-04-2010 07:55 PM

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.

Simon Bridge 01-04-2010 09:37 PM

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.

b-RAM 01-05-2010 12:57 AM

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 ^^.

Simon Bridge 01-05-2010 01:27 AM

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.

b-RAM 01-05-2010 02:01 AM

Thank's for the enlightment Simon Bridge, it's very help me ^^.


All times are GMT -5. The time now is 09:43 AM.