Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon May 02, 2011 7:26 am 
Offline
Senior Newbie

Joined: Wed Mar 09, 2011 5:40 pm
Posts: 18
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.

Ed


Top
   
 Post subject:
PostPosted: Mon May 02, 2011 7:35 am 
Offline
Sysop

Joined: Sat Nov 27, 2010 3:32 am
Posts: 180
Website: https://blog.timheckman.net/
Location: San Francisco, CA
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.

-Tim

_________________
'If debugging is the process of removing bugs, then programming must be the process of putting them in.' //Edsger Dijkstra
'Nothing is withheld from us which we have conceived to do.' | 'Do things that have never been done.' //Russell Kirsch


Top
   
 Post subject:
PostPosted: Mon May 02, 2011 7:38 am 
Offline
Senior Newbie

Joined: Wed Mar 09, 2011 5:40 pm
Posts: 18
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
Code:
# User privilege specification
root    ALL=(ALL) ALL


to

Code:
# 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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group