Non root user permissions via filezilla
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.
Ed
2 Replies
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.
-Tim
sudo /usr/sbin/visudo
i then added the following line
# User privilege specification
root ALL=(ALL) ALL
to
# 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.