aravindc / sshxcute

Automatically exported from code.google.com/p/sshxcute
1 stars 0 forks source link

Sudo in sshxcute is not happening #20

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2. ssh.connect();

3. CustomTask sampleTask = new ExecCommand("sudo -S su - user");

stuck over here

I want to do the folowing thing like sudo su - <UserName>.it will prompt for a 
password.To avoid the prompting  i am using like this sudo -S su - netaware.

The method works well in command prompt but in ssh execute.it is getting stuch 
with the following log.

trying to connect
SSHExec initializing ...
Session initialized and associated with user credential password
SSHExec initialized successfully
SSHExec trying to connect user@host
SSH connection established
Command is sudo -S su - user
Connection channel established succesfully
Start to run command

What is the expected output? What do you see instead?

should come out of the loop

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by sanjayku...@gmail.com on 10 Sep 2013 at 2:50

GoogleCodeExporter commented 8 years ago
Any solution for this problem? I also want to execute sudo command on server. 
It errors out with message 'command not found'.

Original comment by ruchi.ma...@gmail.com on 27 Mar 2014 at 8:51

GoogleCodeExporter commented 8 years ago
i'm stuck with "Start to run command" when using sudo command. is this problem 
fixed.?

Original comment by chilamba...@gmail.com on 19 Jun 2015 at 9:48