Non root user permissions via filezilla

Hi folks,

I've disabled my root login on my linode and setup a new user and given it sudo permissions via /usr/sbin/visudo

When I login via ssh (via RSA no password required) I have no problem editing files in places like /etc/nginx by issuing commands like sudo nano /etc/nginx/nginx.conf

But when I login via filezilla i don't have permissions to upload/edit files.

Is there a way to pass "sudo" to filezilla commands so I don't need to do this via ssh?

I'm on a mac which rules out WinSCP.


2 Replies

Hey Ed,

The best way to do this would be to change your PermitRootLogin directive in "sshd_config" to "without-password" instead of "no":

PermitRootLogin without-password

You would then want to configure SSH pubkey authentication for the root user (preferably with a passphrase). This directive allows you to log in as root when using SSH pubkeys, but you cannot log in as root when simply trying to use password authentication.


i found a way around this by doing the following (not logged in as root)

sudo /usr/sbin/visudo

i then added the following line

# User privilege specification
root    ALL=(ALL) ALL


# User privilege specification
root    ALL=(ALL) ALL
mynewuser ALL=(ALL) ALL

when i login with mynewuser via filezilla I can now transfer files anywhere I want.

I don't understand why this works as I already had mynewuser added to a group which also has a line in visudo grant all privileges.

Anyway it works so I'll got with it for now.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct