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

by shin, (6241 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 #

locked

Complete thread: