Sudo after connecting via SFTP?

Come here to discuss FileZilla and FTP in general

Moderator: Project members

Post Reply
Message
Author
zomgmike
504 Command not implemented
Posts: 6
Joined: 2013-07-17 20:34
First name: Mike

Sudo after connecting via SFTP?

#1 Post by zomgmike » 2018-02-16 00:10

Is there some way to connect via my FTP account "mike" and then run sudo -su and enter a password so as to escalate my permissions? I'm unable to figure out how (if it is even possible.)
Hi, I'm Mike :D

User avatar
boco
Contributor
Posts: 26930
Joined: 2006-05-01 03:28
Location: Germany

Re: Sudo after connecting via SFTP?

#2 Post by boco » 2018-02-16 05:04

No, running commands requires the full SSH2 secure shell. FileZilla does only support the SFTP subsystem which doesn't have a shell at all.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

User avatar
botg
Site Admin
Posts: 35540
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: Sudo after connecting via SFTP?

#3 Post by botg » 2018-02-16 08:23

Note that interactive shells and sudo are not a standardized, it is not possible to use the interactive shell from GUI programs without risking total data loss. sudo could very well be the command to launch nuclear missiles on some systems.

zomgmike
504 Command not implemented
Posts: 6
Joined: 2013-07-17 20:34
First name: Mike

Re: Sudo after connecting via SFTP?

#4 Post by zomgmike » 2018-03-06 20:39

I just circled back around to working on this project and while the thread is now a few days old, I wanted to make sure you were told thank you for the answer. You guys probably don't hear that enough for the number of questions you answer for idiots like me!

I didn't know that sudo was not standardized, and the concept that someone could (totally would!) make it act differently on a certain system definitely made me laugh out loud.
Hi, I'm Mike :D

Post Reply