Security: preventing account A from seeing account B

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • camperjohn64
    Confirmed User
    • Feb 2005
    • 1531

    #1

    Security: preventing account A from seeing account B

    I have a server that up until now only been used for my own accounts. I am going to allow a friend to host an account, and I am rsearching how to prevent account A from seeing account B. He is a good friend so I'm not worried for him, I'm just thinking if he lets a webmaster access his account...

    Suggestions?

    Apache issues? PHP issues? SSH issues? FTP?
    www.gimmiegirlproductions.com
  • baddog
    So Fucking Banned
    • Apr 2001
    • 107089

    #2
    Just set up an FTP account for him that goes to his home folder and nowhere higher.

    Comment

    • raymor
      Confirmed User
      • Oct 2002
      • 3745

      #3
      Talk to your server admin about "chrooted FTP". Most FTP servers can be set where you see only your own files.

      Other than that, assume he can use PHP to SEE your files (but then he can see most of them in a browser anyway.) Any sensitive information stored on the server should be properly encrypted or hashed.

      To prevent someone with an account seeing your files through their PHP script requires a bit more complex setup than I want to detail here, and it creates very significant new security problems the way most people do it, so the "short version" would be dangerous. The key is to create two NEW users - you_apache and him_apache. Your scripts would be set to run as you_apache and his would be set to run as him_apache.
      Last edited by raymor; 02-14-2012, 03:14 PM.
      For historical display only. This information is not current:
      support@bettercgi.com ICQ 7208627
      Strongbox - The next generation in site security
      Throttlebox - The next generation in bandwidth control
      Clonebox - Backup and disaster recovery on steroids

      Comment

      • CYF
        Coupon Guru
        • Mar 2009
        • 10973

        #4
        set him up in a chrooted ssh jail.
        config so 'ps' etc will only show his own running processes
        Webmaster Coupons Coupons and discounts for hosting, domains, SSL Certs, and more!
        AmeriNOC Coupons | Certified Hosting Coupons | Hosting Coupons | Domain Name Coupons

        Comment

        Working...