Re: Login, su to root, execute command - WeOnlyDo Discussion board

Re: Login, su to root, execute command (General questions)

by shin, Friday, May 30, 2008, 05:13 (5811 days ago) @ wodDamir

Hi Shin,

The code you provided me with works on my side. It logs me in, executes su - , and lists the directory.

However, If I'm correct, you receive error WaitFor line, right after root password is sent. Perhaps the WaitFor is waiting for a wrong prompt? Can you try connecting to thta host using some other client (putty) and check what comes back as prompt?

Regards,
Damba

Hi, wodDamir

normal account prompt is $
root account prompt is #


Complete thread: