Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Jun 22, 2012 5:41 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
I'm the newfound sysAdmin for a small web marketing firm, and have inherited responsibility for Linode as the host both for their web presence on one IP, and their development server on another (2 nodes).

I've been "webmaster" for my own sites running on Dreamhost but always solo, as a root user. Formerly, this firm hosted on Media Temple, and self hosted an Ubuntu dev and svn server. With the control panels on DH & MT at least, one is able to assign permissions to certain directories, and MySQL db for certain users.

This is important in the context of this organization, as they have a a half dozen development projects in process at any time, and any number of hired guns contributing to them.

Clearly, allowing root access to the entire server is undesirable.

So I've been digging into ssh keys, and command line access. As a first step, I generated RSA and DSA keys locally, and as root, created a user for myself in ~/home/ on the dev Linode.

Yesterday i tried to scp my public keys to ~/home/user/.ssh

Terminal stated -bash: cd: /.ssh: No such file or directory

despite issuing a mkdir command. However logged in via STFP, I can see /.ssh and my two public keys in it. I did not see this directory last night. There should not be time lag, and am puzzled by this.

Since my keys are now in /.ssh I just tried to log in via Terminal as my user, not root. I was still asked for the password I set when I created my user logged in as root.

I believe there are several commands that need to be issued as root to lock down the server and enable key access logins.

Q: Will that lock-down prevent SFTP access?

And further, to the point of my introductory statement, assuming as root that I create users for hired guns, how do I associate them with particular projects and MySQL databases?

Is this question, and my puzzle over the phantom /.ssh too vague, broad and deep to be asked here? I fear it is.

I'm hoping for some help, if not clarity, or suggested reading. I've been consulting library.linode.com for information, but it's not as granular as perhaps needed for a lightweight like myself.

cheers, mjb


Top
   
PostPosted: Fri Jun 22, 2012 5:45 pm 
Offline
Senior Member

Joined: Mon Sep 12, 2011 3:29 am
Posts: 63
ICQ: 1081190
Website: http://kyhwana.org
AOL: kyhwana
Location: New Zealand
~/home/user/.ssh would be "/home/user/home/user/.ssh".


Top
   
PostPosted: Fri Jun 22, 2012 9:03 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
in what context are you referring?

current directory structure is ~/home/user/.ssh and I can see that via an FTP client logged in as root.

to reiterate, the issue is, we will have users who need access to ~/var/www/projects/project and to MySQL on a user by project basis.

how best to do that, so that when project is complete, creds can be parked, or removed/revoked.

mjb


Top
   
PostPosted: Fri Jun 22, 2012 9:28 pm 
Offline
Senior Member

Joined: Sun Aug 31, 2008 4:29 pm
Posts: 177
What he means is that ~ is shorthand notation for your home directory, e.g. /home/user

So ~/home/user/.ssh in fact expands to be "/home/user/home/user/.ssh"

_________________
sleddog


Top
   
PostPosted: Mon Jun 25, 2012 7:06 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
OK, be that as it may, I'm still looking for clarity on the over-arching question of granting permissions to specific directories to specific users. I see that via https://manager.linode.com/user/index I can limit permissions to users, but that is on a more global basis. I can't see a way to limit access in a more granular way.


Top
   
PostPosted: Mon Jun 25, 2012 11:06 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
The Linode Manager isn't designed for that sort of thing. If you want a control panel so your users can manage individual files, administer databases and e-mail, etc., you will need to install one on your VPS. Some free software panels are ISPConfig, Virtualmin, Kloxo, and Domain Technologie Control (DTC). I haven't used any of these, so can't give a recommendation.


Top
   
PostPosted: Mon Jul 09, 2012 6:38 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
Thanks Vance, that's what I've come to recognize/understand.

I had signed up for a free cPanel 20 day license, but what I've also come to understand in reading pre-install documentation, is that it must be installed on a blank box. We currently have 21GB of project sites and MySQL databases being served on the node I'd like to run it on to put a face on all that back-end admin we need to do.

I can look into the panels you list, but to your knowledge (or anyone else's) will we run into a similar issue. That is, if we have data, will that preclude install.

cheers


Top
   
PostPosted: Mon Jul 09, 2012 7:08 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Attempting to install a control panel on an already established server is generally a bad idea they will try to overwrite the various configurations with their own and any customisations may be overwritten.

If you really need a control panel then bring up a new node and migrate your projects to it, otherwise it's time to learn the command line!

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Tue Jul 10, 2012 12:48 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
Thanks obs, I appreciate you confirming my concern, and the suggested solution.


Top
   
PostPosted: Tue Jul 10, 2012 2:02 pm 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
If you do want to spin up a new linode the swap if facility in the linode manager means you don't need to fiddle with dns.

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
PostPosted: Wed Jul 11, 2012 4:27 pm 
Offline
Senior Newbie

Joined: Thu Jun 21, 2012 11:14 pm
Posts: 9
anyone have experience with OpenPanel?

http://www.openpanel.com/


Top
   
PostPosted: Sat Jul 19, 2014 5:13 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
What is CFS? And why would it be against the TOS?

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
PostPosted: Sat Jul 19, 2014 5:34 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
hoopycat wrote:
What is CFS? And why would it be against the TOS?


Better yet, who is peleus and why is he going around resurrecting 2+ year old threads?

_________________
Either provide enough details for people to help, or sit back and listen to the crickets chirp.
Security thru obscurity is a myth - and really really annoying.


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