Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Mar 01, 2014 6:09 pm 
Offline
Junior Member

Joined: Sat Nov 10, 2012 10:24 pm
Posts: 22
Just starting out playing with "attempting" to set up a site on a server Ubuntu 12.04.
Followed the Getting Started guide, but also added in disabling root login,

PermitRootLogin no


added (think I did) a user like this:
adduser dave
usermod -a -G www-data dave

$vi /etc/sudoers
dave ALL=(ALL:ALL) ALL

sudo service ssh restart

and I can SSH login as dave, tried root and sure enough will not allow me so everything looks good.

I SFTP thru FileZilla but i have zero permissions to create folders except in home/dave.

What Am I missing? If I grant dave all the same access as the root user why does he have none in FTP?
I can login as dave / password but cant really do anything.

My background is web development.
Never a server or command line so I am just following the guides hoping its right so the commands all or foreign to me.
Its all cryptic to a visual person so bare with me. And for now it will just be me with access.

Thanks for any all help. Explain as if I was a 4 year old if possible

Dave


Top
   
PostPosted: Sun Mar 02, 2014 8:39 am 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
Adding 'dave' to sudoers allows him to run executables as if he were 'root'. It does not alter his ability to access the file system -- the permissions still apply, so he needs to be granted write access to the directories where he is going to upload / create folders.

_________________
/ Peter


Top
   
PostPosted: Sun Mar 02, 2014 2:45 pm 
Offline
Junior Member

Joined: Sat Nov 10, 2012 10:24 pm
Posts: 22
Thanks for the time Peter.

After a bit of Google and reading I got it all sorted out.
I was under the wrong impression but on track now (I hope).

Dave


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


Who is online

Users browsing this forum: No registered users and 2 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