How to use sudo over SFTP with CyberDuck?

Viewed 52107

I'm copying this question from over here: http://getsatisfaction.com/cyberduck/topics/can_i_use_sudo_over_sftp_with_cyberduck

I am having the same issue and finding it hard to find an answer:

I am using Cyberduck over SFTP. I can connect and browse files fine, but when I try to upload, I get a permissions error. Web host says I need to use the 'sudo' command. I know how to do this via Terminal, but it is possible to to tell Cyberduck to use sudo?

Please don't tell me to use root because:

What if you don't have root access or don't want to enable root access?

5 Answers

If you have access to the server, you might be able to claim ownership for the directory with your ssh user. After that you should be able to copy and edit data without using sudo.

sudo chown -R $(whoami) /your/current/dir
Related