PDA

View Full Version : vsh problems


Tomy
07-19-2005, 03:21 AM
Hi all,

I am trying to delete a file with a remote execution. I am using vsh.exe command line utility.
The remote server has instaled vShell, and the user that is login in this user is the correct. But when the vsh command try to delete the specific file i receive an error message.

"[LOCAL DEBUG] : RECV : USERAUTH_FAILURE, continuations [password]
[LOCAL DEBUG] : SENT : USERAUTH_REQUEST [password]
[LOCAL DEBUG] : RECV : AUTH_SUCCESS
[LOCAL DEBUG] : SEND: x11 forwarding request
[LOCAL DEBUG] : RECV: x11 request failed
[LOCAL DEBUG] : SEND: agent forwarding request
[LOCAL DEBUG] : RECV: agent request failed
[LOCAL DEBUG] : SEND: shell request
00008: Could not start program (del C:\david\nada.txt): The system cannot find the file specified.

[LOCAL DEBUG] : RECV: Error: receive "failed" response for unknown request
The server refused to start the requested command."

Also the folder and the file exists into the remote server.(remote server uses windows sotfware).

Why i can not delete this file?

bocks
07-19-2005, 09:32 AM
Hi all,

I am trying to delete a file with a remote execution. I am using vsh.exe command line utility.
The remote server has instaled vShell, and the user that is login in this user is the correct. But when the vsh command try to delete the specific file i receive an error message.

"[LOCAL DEBUG] : RECV : USERAUTH_FAILURE, continuations [password]
[LOCAL DEBUG] : SENT : USERAUTH_REQUEST [password]
[LOCAL DEBUG] : RECV : AUTH_SUCCESS
[LOCAL DEBUG] : SEND: x11 forwarding request
[LOCAL DEBUG] : RECV: x11 request failed
[LOCAL DEBUG] : SEND: agent forwarding request
[LOCAL DEBUG] : RECV: agent request failed
[LOCAL DEBUG] : SEND: shell request
00008: Could not start program (del C:\david\nada.txt): The system cannot find the file specified.

[LOCAL DEBUG] : RECV: Error: receive "failed" response for unknown request
The server refused to start the requested command."

Also the folder and the file exists into the remote server.(remote server uses windows sotfware).

Why i can not delete this file?
There could be a couple of things that would cause this. To determine why, I need to get a little more information.

It look like you are passing a command on the vsh command line.
Can you show me the actual cammand line as it is used (passwords changed, of course ;) )?

Also, if you just use vsh to connect (not passing a command) can the user log in and execute the commnd by hand?

If you specify the cmd command on the command line as well, do you see the same behavior? The command line would look something like this:

vsh user@hostname "cmd /C del C:\david\nada.txt"

Thanks,

-bocks

Tomy
07-21-2005, 11:35 AM
Hi Bocks,

Your post has been a great help. I finally have could to delete the file from remote server.But this is a development test.

When i try to delete into Producction environment i always received this message...

[LOCAL DEBUG] : RECV: agent request failed
[LOCAL DEBUG] : SEND: shell request
[LOCAL DEBUG] : RECV: shell request succeeded
Access is denied.
[LOCAL DEBUG] : Changing state from STATE_CONNECTION to STATE_TRANSPORT_STOPPING.

I donīt know why is occurring. The administrator from remote server says that the user used has delete rights into the specifie folder.
The remote server has installed Vshell software, and the "Access Control" for this user grant "Remote Execution".

What kind of configuration need the server to grant the files deletion?

P.D- The user can get files from this folder with vcp.exe. But it is not possible to delete files.
Thanks a lot.

bocks
07-21-2005, 01:37 PM
Hi Tomy,

Does the account being used have permissions to log on locally in Windows?

Also, in VShell, does VShell allow shell access to this account?

Thanks,

-bocks