Chovy’s Blog

Managing Clients with Linux

Mon, November 14, 2005 — Category: Advocacy, Development

On my hosting provider account, I want to seperate each client from the rest of my web sites.
Since I can create shell users, I can manage this seperation using groups:
myusername (I’m the “admin”) Ok, not REALLY an admin, but for this purpose I am.
I have two clients:
client1 and client2
I also have about 15 other web […]

On my hosting provider account, I want to seperate each client from the rest of my web sites.

Since I can create shell users, I can manage this seperation using groups:

myusername (I’m the “admin”) Ok, not REALLY an admin, but for this purpose I am.

I have two clients:

client1 and client2

I also have about 15 other web sites I run (which I don’t want my clients to have read/write access to).

/home/myusername/domain1.com
/home/myusername/domain2.com
/home/myusername/domainN.com
/home/myusername/client1.com
/home/myusername/client2.com

So, what I did was create two groups:

Syntax: user:group
client1:client1
client2:client2

And then I add myself to both groups (client1 and client2).

Then I set the umask for each client to 002 (~/.bash_profile or ~/.bashrc).
I also use ‘newgrp client1‘ command for each client (in this case ‘client1′). This will make the default file ownership client1.client1 and permission 664. (because I’m the group, I can also read/write).

so then I symlink their domain to their home directory:

/home/client1/client1.com -> /home/myusername/client1.com
And type “chgrp -R client1.client1″ if files already exist.
also: “find . type -f chmod 664 {} \;” and “find . type -d chmod 775 {} \;” inside their domain directory so both of us can read/write to it.

Then I change my own home directory to drwxr-x–x so they can’t read my stuff (I also change my home group to myusername.myusername.

Here’s a nice little tutorial on linux administration.

  • Post Managing Clients with Linux to del.icio.us
  • Post Managing Clients with Linux to digg
  • Post Managing Clients with Linux to Furl
  • Add Managing Clients with Linux to YahooMyWeb
  • Simpify!
  • Post Managing Clients with Linux to shadows
  • Post Managing Clients with Linux to Spurl
  • Post Managing Clients with Linux to BuddyMarks
  • Submit Managing Clients with Linux to Slashdot

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

 
Keyword Advertisers:
SEO Directory SEO Links Free Link Directory Shopping Submission Directory Gardening Tips Political Forum Search Engine Optimization Search Engine Marketing Audio Video Directory SEO Forum Web Development Blog Organic SEO Wiki Web Development Consulting

Learn more about purchasing keyword text link ads on this site.