Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Apr 28, 2010 10:41 am 
Offline
Senior Newbie
User avatar

Joined: Tue Apr 27, 2010 5:32 am
Posts: 10
AOL: takumisai
Forgive me chaps if this has been asked before, I searched and found nothing... I have been following many guides to setup my linode and I believe I'm almost there...except for one thing.

Some guides advocate creating seperate user accounts for each web site you host, and then having the docroot under the individual home directory. Others place all sites under /srv/www or /var/www.

I can understand why seperate accounts are obviously neccessary if you are working with clients and they need to login, but in my case, I am the only person that ever logs in. Is there any reason to consider the seperate account strategy? Is there any security advantage to consider? what am I missing?

I'd love to hear from anyone! Cheers. :D


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 1:23 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 06, 2009 9:02 pm
Posts: 54
Website: http://mark.watero.us/
Location: Las Vegas
If all of your web sites are owned by seperate user accounts, if one is compromised the door isn't sitting wide open for the perpetrator to just walk down the line and have his or her way with all of your web sites.


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 1:29 pm 
Offline
Newbie

Joined: Tue Apr 13, 2010 11:04 am
Posts: 4
A quick answer would be if any one of your sites becomes compromised in a way that allows the attacker to read files, then they all your sites are compromised.


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 5:39 pm 
Offline
Senior Newbie

Joined: Mon Apr 26, 2010 3:48 pm
Posts: 7
Separate accounts are only practical up to a certain point. If I am managing 50 web sites, then there is no way I am going to be able to remember 50 logins and passwords, thus I will become dependent on either a password manager or a common login/password (or a scheme that could be figured out), both of which have their risks.


Top
   
 Post subject:
PostPosted: Wed Apr 28, 2010 10:25 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 06, 2009 9:02 pm
Posts: 54
Website: http://mark.watero.us/
Location: Las Vegas
tacitus wrote:
If I am managing 50 web sites, then there is no way I am going to be able to remember 50 logins and passwords


Get them tattooed on your wrist? Honestly I have trouble with just two separate accounts sometimes, but that's why I maintain the highest level of security everywhere else I possibly can.

When it comes down to sites to users, I usually use a group by statement; personal sites are all under one account, my development sites under another, and anything that reaches a certain amount of exposure gets its own.


Top
   
 Post subject:
PostPosted: Thu Apr 29, 2010 1:49 pm 
Offline
Newbie

Joined: Tue Apr 13, 2010 11:04 am
Posts: 4
tacitus wrote:
Separate accounts are only practical up to a certain point. If I am managing 50 web sites, then there is no way I am going to be able to remember 50 logins and passwords, thus I will become dependent on either a password manager or a common login/password (or a scheme that could be figured out), both of which have their risks.


...Or you just copy your public ssh key to each of those accounts. That way you can use the same password for every account while maintaining proper user permissions. Not to mention the added benefit that brute force password attacks would become impossible.

@Benio - also keep in mind even if your websites are divided into separate accounts, you only get full web security if the webserver is executing those sites as that user. So research mpm_itk, apparmor, fastcgi, php-fpm, etc.


Top
   
 Post subject:
PostPosted: Thu Apr 29, 2010 2:05 pm 
Offline
Junior Member

Joined: Tue May 05, 2009 8:22 am
Posts: 26
Website: http://khobbits.co.uk
Location: England
I use tunnelier for all my maintenance, it has a few nice features....

Firstly it saves profiles to files which can store passwords as well as ssh keys.
It has a built in sftp program meaning you don't have to mess with different programs.
It supports ftp bridging, meaning programs that use ftp, can just upload to localhost:21 and that will be mapped to the current ssh connection.

And for minor maintenance there is also su....


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


Who is online

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