Sudo after login

This forum is not monitored by the SmartFTP staff. If you have a license please contact technical support by email.
Locked
JT Thompson
Posts: 4
Joined: Sat Mar 15, 2014 5:42 am

Sudo after login

Post by JT Thompson » Sat Mar 15, 2014 5:47 am

I need to sudo to my server after logging in with SFTP over SSH.
 
For security we do not allow direct logins with root, so we use individual accounts, then su. For my client I have a detection then make an auto entry. so it looks like this:
 
enter: su
expect: password
send: *******
 
So basically i'm typing su, then when prompted entering the password.
 
I can't figure out how to structure this in the 'perform command' line because i cannot do this in one stroke, it takes a request, response then answer.
 
I cant seem to locate where to do this. i can login fine using my keyfile, i just need to su once in.
Last edited by JT Thompson on Sat Mar 15, 2014 5:48 am, edited 1 time in total.

JT Thompson
Posts: 4
Joined: Sat Mar 15, 2014 5:42 am

Re: Sudo after login

Post by JT Thompson » Sat Mar 15, 2014 8:10 pm

Hello?

JT Thompson
Posts: 4
Joined: Sat Mar 15, 2014 5:42 am

Re: Sudo after login

Post by JT Thompson » Mon Mar 17, 2014 7:26 am

...........

JT Thompson
Posts: 4
Joined: Sat Mar 15, 2014 5:42 am

Re: Sudo after login

Post by JT Thompson » Tue Mar 18, 2014 12:47 pm

Seriously? this garbage is 'premium' support?

mb
Posts: 12029
Joined: Thu Oct 11, 2001 1:24 pm
Display name: Mat (SmartFTP)
Contact:

Re: Sudo after login

Post by mb » Tue Mar 18, 2014 4:18 pm

Wrong forum and wrong attitude.

Locked