Slashdot Mirror


Preventing My Hosting Provider From Rooting My Server?

hacker writes "I have a heavily-hit public server (web, mail, cvs/svn/git, dns, etc.) that runs a few dozen OSS project websites, as well as my own personal sites (gallery, blog, etc.). From time to time, the server has 'unexpected' outages, which I've determined to be the result of hardware, network and other issues on behalf of the provider. I run a lot of monitoring and logging on the server-side, so I see and graph every single bit and byte in and out of the server and applications, so I know it's not the OS itself. When I file 'WTF?'-style support tickets to the provider through their web-based ticketing system, I often get the response of: 'Please provide us with the root password to your server so we can analyze your logs for the cause of the outage.' Moments ago, there were three simultaneous outages while I was logged into the server working on some projects. Server-side, everything was fine. They asked me for the root password, which I flatly denied (as I always do), and then they rooted the server anyway, bringing it down and poking around through my logs. This is at least the third time they've done this without my approval or consent. Is it possible to create a minimal Linux boot that will allow me to reboot the server remotely, come back up with basic networking and ssh, and then from there, allow me to log in and mount the other application and data partitions under dm-crypt/loop-aes and friends?" Read on for a few more details of hacker's situation. "With sufficient memory and CPU, I could install VMware and run my entire system within a VM, and encrypt that. I could also use UML, and try to bury my data in there, but that's not encrypted. Ultimately, I'd like to have an encrypted system end-to-end, but if I do that, I can't reboot it remotely without entering the password at boot time. Since I'll be remote, that's a blocker for me.

What does the Slashdot community have for ideas in this regard? What other technologies and options are at my disposal to try here (beyond litigation and jumping providers, both of which are on the short horizon ahead)."

19 of 539 comments (clear)

  1. If they do this.. by sopssa · · Score: 5, Insightful

    .. just switch providers. I'm sure there are companies that treat you better.

    1. Re:If they do this.. by jcr · · Score: 5, Insightful

      First, check your contract and make double sure that you didn't give them permission for this, and if not, go ahead and file charges.

      -jcr

      --
      The only title of honor that a tyrant can grant is "Enemy of the State."
    2. Re:If they do this.. by dave562 · · Score: 5, Insightful

      As a network admin, I've run across "I know what I'm doing" people in the past. FWIW, I'm often times that guy when I'm calling tech support. It's one part ego, one big part actually knowing what I'm doing. I don't want to go through tech support 101 with some monkey on the phone when I know what the issue is.

      Having said that, there have been times when I thought I knew what the issue was, but it turned out to be something else. I think that a hosting provider wanting access to log files is perfectly reasonable. They aren't arbitrarily asking for the files. The questioner states that he is having problems and he asked them to sort it out. Tech support 101 says to look at the log files. The questioner doesn't make it clear whether or not he offered to give them the log files.

      Is the hosting provider a bit off base? Yes and no. Yes, it's kind of lame that they are rooting boxes. On the other hand, the questioner might be more problems than he is worth from their point of view. If I were in the same situation, I'd just change providers and find one who will put into writing that they won't root my box (good luck with that).

      (Car Analogy) - It's like leasing a car with a repair warranty and wanting to do your own repairs. You diagnose the cause of the problem and take the car to the mechanic. You ask the mechanic to fix your car under warranty and he asks you for your keys. You refuse to give him the keys.

      It seems to me that if a person can't fix a problem on their own, and that person then asks for help fixing the problem, they need to give up some control to the person they have asked for help from. Unless a person selects a hosting provider with an SLA that will give them physical access to their hardware on a 24/7 basis, that person is going to have to make some accomodation (like providing access to log files) when the hosting provider needs to get involved with troubleshooting.

    3. Re:If they do this.. by DamonHD · · Score: 4, Insightful

      I have a mixture of co-lo (ie where I own the box) and full-server rental, and the latter is treated much like the former for me. Occasionally chaos and cock-up has happened, but nothing worse.

      When you the renter of space are managing a raw server then the hosting company should understand at the very least that you may be hosting private data (eg banking details) that they never want to incur vicarious liability for the misuse of, eg if the hoster were to gain unauthorised root access to your maachine and then customers of the Web site were to suffer financial losses soon after...

      Rgds

      Damon

      --
      http://m.earth.org.uk/
    4. Re:If they do this.. by Alrescha · · Score: 3, Insightful

      I third this.

      When our provider started having numerous unexplained outages, we quietly deployed equipment to a new provider across town and changed the DNS. I don't even think they asked us why we didn't renew our contract.

      There's just no reason to do business with people like this. Leave - as fast as you can.

      A.

      --
      ...bringing you cynical quips since 1998
    5. Re:If they do this.. by Planesdragon · · Score: 3, Insightful

      IANAL, but I'm pretty sure that's irrelevant. You can't be bound to terms of a contract which are illegal. If your provider cracked your root password and logged into your server, they have committed the crime of illegal trespassing upon a computer system whether it's in the contract or not.

      Wrong.

      If I take $5 from my wallet and put it down on my porch table, you cannot normally just take it without committing the crime of theft. However, if you and i form a contract that any money left on my porch can be taken by you, well, then that's part of the contract, not theft.

      The essential part of contracting is that you exchange something you have ($) for something the other guy has (internet hosting.) Absent the contract, neither of you are entitled to what the other has; the contract is the precise manner in which you exchange those things.

      If you buy hosting from someone else, KEEP A COPY of the contract, and stay abreast of any changes. If you do not understand completely every part of it, hire a lawyer to have it explained to you. (Or just ask for that part to be re-written to be clearer.)

    6. Re:If they do this.. by flappinbooger · · Score: 3, Insightful

      That's a great idea, except for the TOS of the DSL and the horrid upload speeds even good DSL typically has.

      --
      Flappinbooger isn't my real name
    7. Re:If they do this.. by celtic_hackr · · Score: 3, Insightful

      IANAL, but I'm pretty sure that's irrelevant. You can't be bound to terms of a contract which are illegal. If your provider cracked your root password and logged into your server, they have committed the crime of illegal trespassing upon a computer system whether it's in the contract or not.

      Wrong.

      Sorry, but you're the one that is wrong. Your analogy sucks and is wrong. Here's an equivalent analogy, if you contract with someone, that they can have any $5 bill you leave on your dinner table inside your house, it is still illegal for them to break into your house to get it.
      You cannot write a contract that permits illegal activity. knowingly writing a contract to allow criminal activity is prima facie proof of criminal conspiracy to commit said crime.
      That said, he could have a contract that allows them to have access to his computer, in which case his refusal to give them access is in violation of the terms of the contract, and they may be able to disconnect him for that. They however are not allowed to commit misdemeanors and/or felonies, aka rooting a server, to get access to what is allowed them via the contract. Now if his contract says they are allowed to root his server, I'd be very surprised, but it still wouldn't hold up in a court. Really onerous terms in a contract are not enforceable, or legal. If the service provider is really doing this, I can assure you it is illegal for them to do so. If the contract says they can, then the employees doing it are at risk of prison as are the lawyers/persons who wrote the contract, and the management who are allowing it to happen.
      I'd like to know what evidence the poster has that his server has been rooted. Furthermore, if his server is so easily rooted, I'd request that he stop using the internet, and remove all his machines at once. We don't need any more people contributing to the botnets. If you can't maintain your systems so they can't be rooted at the drop of a hat, then you have no business having servers on the internet.

      My advice to this guy is:
      1) learn how to properly maintain your system,
      2) switch to a new hoster,
      3) provided he has suitable proof of their unauthorized access, find the applicable law and prosecute.

    8. Re:If they do this.. by techno-vampire · · Score: 3, Insightful
      I _DO_ work at a hosting provider, and unfortunately root access is often required to repair the steaming piles of crap customers often leave behind.

      I'm not disputing that. However, rooting the server because the client doesn't want to give you the root password is a bit much, don't you think? Wouldn't it be more appropriate to say, "Sorry, no root password, not fix." and let it go at that?

      --
      Good, inexpensive web hosting
    9. Re:If they do this.. by sydneyfong · · Score: 3, Insightful

      If you buy hosting from someone else, KEEP A COPY of the contract, and stay abreast of any changes. If you do not understand completely every part of it, hire a lawyer to have it explained to you. (Or just ask for that part to be re-written to be clearer.)

      With the number of contracts people make daily, one would go broke due to consultation fees before he gets anything done.

      Besides, reading the comments of people who apparently have an opinion on how the law is, I think the danger is more in the terms where you *think* you understand what it says.

      --
      Don't quote me on this.
  2. Stop being a douche by jascat · · Score: 5, Insightful

    As someone that works in support for a hosting provider, you're the type of customer that irritates me the most. While they shouldn't be rebooting your box to get root access without your consent, you should at least help them help you. Give them an account with limited sudo access to view your logs. If that won't do, then provide them with the necessary logs. If that's not good enough, don't expect support and move your stuff to some place that doesn't provide the level of support you're paying for.

    1. Re:Stop being a douche by Sargonas · · Score: 5, Insightful

      Agreed! What you are asking and what you are wanting are an unreasonable combination. Take a step back off your sysadmin high horse ( I am allowed to use that term, since I too was once on one) and look at it from their point of view. You are sending them WTF tickets and at the same time refusing to "help them help you". Honestly, what do you expect?!? Agreed they should not be rebooting your box to get access without first warning you, but at the same time you are demanding a response asap and then withholding critical info from them. What do you expect them to do? As the above poster said, either create a limited account for them with only log file access, or else man up and just give them a full login. I will bet all the money I have made in my previous career as a sysadmin for several large companies and hosting companies that in your hosting terms it clearly states they own the system, hardware and software, and that you have no inherent right to deny them access. (unless we are talking about a co-located server you personally own, but since you did not state that I can only assume we are not.) In short, you are being a jerk. Get over yourself and either A: work with them to help you, B: diagnose your own damn problems and stop asking them to without giving them the help they need, c: change hosts to someone who more suits your needs, d: colo you own box in an IBX and handle all the work yourself.

    2. Re:Stop being a douche by hacker · · Score: 4, Insightful

      "As the above poster said, either create a limited account for them with only log file access, or else man up and just give them a full login."

      I can't give them a limited account, because they've locked me out of accessing my own machine, demanding I give them the root password before they hand access back to me.

      I find these to be unacceptable terms.

    3. Re:Stop being a douche by ShinmaWa · · Score: 5, Insightful

      You say this

      I can't give them a limited account, because they've locked me out of accessing my own machine, demanding I give them the root password before they hand access back to me.

      ....however, from another post you let the truth slip out

      they moved my drive to a different chassis, with completely different hardware, and are asking for the root password so they can reconfigure everything to coincide with that hardware change (...LATER...) When they migrated it from Savvis to some datacenter in Dallas 2 months ago.....

      So you openly admit the machine IS NOT YOURS. You are essentially keeping them from their own machine, which I find unethical. I can't blame them for taking matters into their own hand and rebooting the system into single-user mode and locking you out until you play nice.

      Stop being a jerk and cooperate with the owners of the machine you are renting or take your data elsewhere.

      --
      The /. Effect: Thousands of users simultaneously accessing a site to not read its content.
  3. Name and Shame by Charles+Dodgeson · · Score: 3, Insightful

    If you have some reason that you haven't moved to a different provider, at least let the rest of us know who to avoid. Name and shame, please.

    As others have pointed out

    • If they have physical access, you can make things a bit tougher for them, but never impossible
    • If all they wanted was access to your logs, then create a user for your providers that is in a group that can read your logs
    • Check with your local ISPs to see if you can get a business account (for a static IP address) and self-host. I'm fortunate enough to have FiOS where I live, and while Verizon is really confused about having a business account at a residence, the headache is worth it. I've got about an hour's worth of UPS at home.
    • At least consider the possibility that your diagnosis is wrong. Maybe you've been rooted maliciously and not by your provider. Or maybe what's going on is your own misconfiguration. At least be open to this possibility (and so give them access to your logs to assist in diagnosis).
    • And, of course, consider changed providers.
    --
    Prime numbers are exactly what Alan Greenspan says they are -S. Minsky
  4. you might be our customer by Eil · · Score: 5, Insightful

    Okay, since a lot of Slashdotters run their own servers rather than utilize the services of a web hosting company, let me provide some background info. I don't know whether the OP is one of our customers or not, but at the web hosting company I work for, there are two ways to host your server with us:

    1. You can co-locate your hardware with us and purchase a unmanaged plan where the only support we offer is reboots and network troubleshooting. Everything else from the OS to web applications is your sole responsibility.

    2. You can rent a server from us, which comes with full managed support, meaning the box is provisioned and configured by us, and our techs have full root access to your host in order to resolve any problems that come up. All services on the machine are monitored by Nagios, so we know (and react) within 5 minutes when a service stops responding.

    You don't specify which hosting plan you have, but from your description of your problem, it sounds like you purchased #2. All of the things you describe are exactly what our technicians would do if we were charged with keeping a managed server online and a customer was making that task impossible to do. If a customer is asking us to fix a problem and is only making it worse or more difficult by virtue of their incompetence, we have been known to lock them out of their own server until the problem is fixed.

    The bottom line is: don't rent a managed server if you don't want managed service. If you want full control over your hardware, you need to talk to the sales team and tell them that you want an unmanaged plan. The trade-off, of course, is that you have to deal with your own "WTF" problems from then on.

  5. Usually more to the story than this.... by Anonymous Coward · · Score: 4, Insightful

    First off, total disclosure - I work for a fairly well know web hosting provider as a system administrator.

    There's basically three plans we have.

    #1 - Managed hosting. We build the box, we manage it, we give you an account to do stuff with. We never give you root. Ever. While I realize the thought of this is anathema to the majority of the slashdot crowd, the bottom line is that webmasters != sysadmin, and there are very few good reasons why a webmaster actually needs root. Obviously in these instances, we can access the machine whenever we want, but as a matter of practice, we don't unless monitoring pops and alert, or a customer submits a ticket. If there's going to be downtime, we try our damndest to work out a time with the customer, but some things (eg, failed drives in an array) constitute bringing the server down without prior customer contact.

    #2 - Unmanaged hosting. We build the box, install whatever OS you want on it, and then turn over root. We do not monitor the box except for ping (and if you firewall off ICMP, we'll turn that off too), and we don't touch the box without a specific request from the customer. If the customer wants us to touch the box, it's a very exorbitant hourly rate (except for hardware failure, as the customer is renting the box from us, we'll replace hardware at no charge, but any work on the server itself outside of that is billable). For these boxes, we would obviously do the same thing with as the OP - we ask for the root password. I'm perfectly ok with providing our public key as well, but most folks would rather just turn over the root password and be done. Occasionally, we do have to root these boxes - either because the customer has forgotten the root password, or because the customer has received a complaint of doing something illegal (like running copyrighted torrents) on the box, and we're forced to investigate to cover our own year. But for the most part, we don't ever want to touch an unmanaged box if we can possibly avoid it. Giving unskilled people root access who break their servers and then want us to fix it is not fun, hence the very large deterrent of the hourly rate. It prevents folks from choosing an unmanaged server just to save a few bucks and then running to us every time something goes wrong.

    #3 - Colocation. You supply the hardware, or you can buy/rent hardware from us. Generally folks will supply their own, and we just drop their network feed into their cage and they take it from there. I can count on one hand the number of times I've had to touch our colo hardware over the years, and if I'm using the right finger, I can make a rude gesture while I'm doing said counting. Generally folks who choose a colo option know what they're doing, and don't need us, and only call if there's an event that's actually beyond their control, like a network issue.

    So honestly, I would take the OP with a grain of salt. If he's got his machine walled off so that only he can touch it on a regular basis, but he keeps opening tickets on a regular basis wanting to know exactly what happened, you're not leaving the hosts tech staff with alot of options. If you're suffering outages, it's a binary question as to who's fault it is - it's either the providers (whether it's network, core internal servers such as DNS, or the like) or it's your servers. Presumably the host is going to know when it's their problem, so if they're asking to take a look at your server, that means the problem is probably actually your server, and not their network. The OP either needs to lose the ego and give up the access or fix his own problems. I suspect that if the OP were to change hosts, the tech staff would not be sorry to see him go

  6. I'm beginning to understand how your ISP feels. by hduff · · Score: 3, Insightful

    They're also denying me KVM access, unless I pay $35.00 for it, so I can go in and fix the networking they changed when they moved my drive to a completely different chassis without my knowledge or approval.

    Since you are not disclosing the ISP name so we can examine their TOS or contracts to see who's really being the jerk here and learn enough actually help you, pay the $35/day just to recover/delete your data if you need to and find another host that suits you.

    Otherwise STFU; I'm beginning to understand how your ISP feels.

    --
    "I believe in Karma. That means I can do bad things to people all day long and I assume they deserve it." : Dogbert
  7. Re:You're complicating things. by socsoc · · Score: 4, Insightful

    Then pay the mind-numbing fee of $35 and get on with your life dude.