News for hackers. Stuff that matters.
Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @07:34PM (#16853975)
The "older generation" does not use metaphors because they are limited in their thinking. They do it to illustrate the principles underlying law. A basic principle of private property is that you don't have to secure it. The burden is on the would-be trespasser to figure out what rights she has with respect to the property and act accordingly. Snooping around private property out of "curiosity" is illegal, whether or not there are locks preventing you from doing so. (This is an idea teenagers have had trouble with long before the Internet, but we manage to beat it out of them every generation).

Those principles apply equally well to the Internet. Ordinary law-abiding people don't go fiddling with URLs, just like law-abiding people don't jiggle door handles or peak into windows to satisfy their curiosity.

Re:Teenager facing prison for downloading unsecured files fr... by gowld on Monday April 16, 2018 @07:45PM (#16854052)
This is absurd. This is not private property. Ordinary law-abiding people do walk into government offices and ask questions, and when they get answers, do continue asking questions and getting answers. Ordinary law abiding people to browse all the products on display at a store. Ordinary law abiding people do flip through all the pages of a catalog that is sent to their home.

This Orwellian attitude that looking at anything is criminal if the government retroactively decides they didn't want you to see it, is terrifying.

But as usual when it comes to authoritarian overreach by government, you're not de-facto wrong about the government sees things, but you are eloquently defending a morally horrific attitude.

Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @08:30PM (#16854332)
Government documents and web servers are private property. (The information within might be public, but it's illegal to access private property in an unauthorized way to get public information). Ordinary law-abiding people do the things that property owners expect them to do (or what they reasonably infer the property owners intend them to do). If there are signs (literal or figurative) that the property owner doesn't want you doing something, then you don't do it--and you're charged by the law with heeding those signs.

That's not Orwellian or authoritarian--it's a basic part of "social" behavior in a society with private property.

Re:Teenager facing prison for downloading unsecured files fr... by shkkmo on Monday April 16, 2018 @09:04PM (#16854517)
Files an a server may be considered "private".

However, when you make those files available through a web server, you make the "public".

You then have the ability to limit the access to those files through any one of a large number of techniques to make them private again. Now if there were evidence that they tried (and failed) to use one of these techniques or that the teenager in question deliberately circumvented these techniques, then you would have a point.

One (not particularly good) way of limiting access to files without verifying identity would be to create a hash (say using the requesters email address and the request ID) and use this in the url to access the document (similar to how google docs implement sharable document links).

If they had done this, then perhaps you could legitimately claim that there was evidence of intent to restrict access.

An incremented ID is the opposite. It is a sign that you wanted people to be able to easily predict the correct url to download the next file from. Using an incremented ID is in fact evidence that this information was intended to be public.

Re:Teenager facing prison for downloading unsecured files fr... by cecilpl2 on Monday April 16, 2018 @09:13PM (#16854569)
Except this teenager was explicitly authorized to access all those files.

He literally asked the web server "can I have these files" and it responded with "yes, you are authorized, here you go".

If he wasn't authorized, the server should have responded with a 403 Forbidden!

Web servers are built around authentication and access rights! It is not the teen's fault that the government doesn't know how to configure them properly.

Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:16PM (#16854897)
Failure to properly secure one's private property does not make it legal for someone else to access it.
Re:Teenager facing prison for downloading unsecured files fr... by garyfirestorm on Tuesday April 17, 2018 @11:31AM (#16859238)
Ummm... You put your furniture on the curb or your trash, then accuse someone for stealing it? If it's private it shouldn't be on the curb. Anything on the curb is considered public. Clicking a picture of anything on your curb is also considered public. If you wanted to keep it a secret, you should have bought a box and kept it in the locker.

Edit: after few days you realize that the trash on your curb shouldn't have been there. Then you raid the trash company because your brother is a cop.

Re:Teenager facing prison for downloading unsecured files fr... by bwbw223 on Monday April 16, 2018 @11:01PM (#16855100)
Sorry- I edited. What I’m saying is that the server represents its owner, so when the server grants someone access in normal operation it’s not intrusion.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @11:04PM (#16855113)
Servers don't grant access. People grant access. People can make mistakes and set up servers to mistakenly allow access to things.

Making a mistake doesn't revoke someone's property rights.

Re:Teenager facing prison for downloading unsecured files fr... by fenomas on Tuesday April 17, 2018 @12:37AM (#16855507)
> Making a mistake doesn't revoke someone's property rights.

This is a non-sequitur, nobody is saying anything about anyone's property rights being revoked.

The teen asked for access, and the content owners, via the permissions they had configured, granted it. Sure they can later decide that this was a mistake, but that doesn't make it theft for the teen to have asked for access.

Re:Teenager facing prison for downloading unsecured files fr... by harryh on Tuesday April 17, 2018 @09:58AM (#16858319)
Making a mistake doesn't revoke someone's property rights.

They made a mistake when configuring their web server. It's obvious that this was a mistake because some of the documents contained private information from Canadian citizens.

Re:Teenager facing prison for downloading unsecured files fr... by fenomas on Tuesday April 17, 2018 @11:12AM (#16859054)
> They made a mistake when configuring their web server. It's obvious that this was a mistake because some of the documents contained private information from Canadian citizens.

Per the tech article, it was an open archive of public documents that the government published periodically. The reasonable assumption is that the files were all public, and there's no reason to suspect the teenager in this case thought otherwise. The fact that ~3% of the files weren't properly redacted (whatever that means) is hardly "obvious".

> Making a mistake doesn't revoke someone's property rights.

Let's keep things constructive please.

Re:Teenager facing prison for downloading unsecured files fr... by bwbw223 on Monday April 16, 2018 @10:55PM (#16855070)
Except they’ve been given access. The server should represent its owners in its sharing of data.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:56PM (#16855078)
Failure to properly secure one's private property does not make it legal for someone else to access it.

It doesn't matter if we're talking about physical property in the real world or virtual property on a server.

Re:Teenager facing prison for downloading unsecured files fr... by cecilpl2 on Wednesday April 18, 2018 @12:03PM (#16868423)
It does if that other person has a reasonable expectation that you intended for it to be public.

Leaving your property on the curb is a good example. If someone takes it, you would be hard pressed to get it back from a legal standpoint.

This is very similar. The government left all those documents on the curb.

Re:Teenager facing prison for downloading unsecured files fr... by spacemanmatt on Tuesday April 17, 2018 @08:26AM (#16857632)
Putting it out on the curb with a "FREE INFORMATION" sign, however, does. And this kid is being thrown under the bus for taking it all because it was on a site labeled FREE INFORMATION.
Re:Teenager facing prison for downloading unsecured files fr... by pdonis on Monday April 16, 2018 @11:33PM (#16855251)
> If there are signs (literal or figurative) that the property owner doesn't want you doing something

But there weren't in this case. The express purpose of the site was to make that information publicly accessible. If you leave stuff out at your curb with a sign that says "Free to all takers", and someone takes something you didn't mean to put there, how are they supposed to know you didn't want them to take it?

Re:Teenager facing prison for downloading unsecured files fr... by TheCoelacanth on Tuesday April 17, 2018 @12:43PM (#16859978)
What literal or figurative signs were there that he should not have accessed the private information? By all accounts, most of the information he retrieved was clearly intended to be public so there would have been no way for him to know that he wasn't supposed to access the small portion that wasn't intended to be public.
Re:Teenager facing prison for downloading unsecured files fr... by mistermann on Monday April 16, 2018 @08:17PM (#16854255)
> This Orwellian attitude that looking at anything is criminal if the government retroactively decides they didn't want you to see it, is terrifying.

This is the big problem here. There's no way the way the Freedom of Information Act in Canada is written the way it is because of the democratic wishes of Canadians. Every day our government moves further away from governing according to the will of Canadians and more toward the will of.....I don't even know. Saying it is the will of politicians doesn't explain some of the strange behavior we've been seeing in this country for quite some time.

If our fate is to ultimately live under a quasi-dictatorship masquerading as a democracy, then so be it, but I wish we could just be honest about it. This objectively false "Canada is a democratic nation" claim is infuriating to me.

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @09:58PM (#16854785)
Man, if it bugs you, have some sympathy for us directly south! People get straight-up fierce about the civic platitudes around here.
Re:Teenager facing prison for downloading unsecured files fr... by newfoundglory on Monday April 16, 2018 @07:48PM (#16854073)
> A basic principle of private property is that you don't have to secure it.

That’s not even true. Trespassing requires that you be told not to be on the property, that’s why people post signs. You can’t be charged with trespassing because you went hiking and wandered onto unfenced land with no signs, it doesn’t matter if the dumb owners thought nobody would ever hike over there.

Re:Teenager facing prison for downloading unsecured files fr... by newfoundglory on Monday April 16, 2018 @07:41PM (#16854030)
> Ordinary law-abiding people don't go fiddling with URLs

I’m an ordinary law-abiding person, and I fiddle with URLs. I know lots of people in that group.

Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @07:42PM (#16854037)
You're not. Ordinary people don't even know that you can do that.
Re:Teenager facing prison for downloading unsecured files fr... by loup-vaillant on Monday April 16, 2018 @07:53PM (#16854104)
You are saying that ordinary people don't know what a URL actually is. This is ridiculous. It takes a certain level of computer illiteracy to never notice that you can access stuff by typing into the address bar directly, or by modifying what's already there.

It also doesn't take a computer whiz to use DownThemAll to enumerate URLs and download them all. They even have a dedicated function for this!

Yes, one does have to have some computer literacy to be able to do that. No, they don't have to be out of the ordinary.

Re:Teenager facing prison for downloading unsecured files fr... by iamnothere on Tuesday April 17, 2018 @07:53AM (#16857453)
Well maybe you shouldn't be using antisocial hacker tools like DownThemAll! An ordinary user would never use such tools. /s

Incrementing URLs by hand is one of the ways I learned about how the internet works, as a young kid. Kids are curious. This is normal behavior!

Re:Teenager facing prison for downloading unsecured files fr... by rootlocus on Tuesday April 17, 2018 @09:13AM (#16857927)
Well, some people believe being curious and trying things out is not what "normal people" do so it's "antisocial" and you shouldn't do it.

I remember a teacher yelling at me for trying some slightly advanced features in a hardware design language. I was really proud I could implement something I didn't thought possible, but her reaction was along the lines "Do you want attention? Why can't you just stay quiet and do what the rest of the class does without showing off?".

Stifling creativity and curiosity, especially in children, encouraging them to be mediocre "like ordinary people" is disgusting and counter productive.

Re:Teenager facing prison for downloading unsecured files fr... by loup-vaillant on Tuesday April 17, 2018 @09:39AM (#16858134)
Reminds me the first time I got to touch a word processor. We were supposed to insert a picture with the "clip art" feature. I made a mistake and inserted a "graph" instead. An empty graph, with grey hashed borders, that I didn't know how to delete or undo at the time. So I asked for help.

> Aaahh, he crashed my computer!

Went the teacher. Which then swiftly closed my unsaved document. 15 minutes of work, gone. As well as any remaining trust I had for her. I had done something unexpected, and she was afraid.

I don't think I was quite able to articulate it at the time, but she would have made a fine witch hunter. I do recall a sense of unpredictability though, and reminded myself not to step on that tiger's tail ever again.

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @09:59PM (#16854788)
Imagine a caveman...
Re:Teenager facing prison for downloading unsecured files fr... by newfoundglory on Monday April 16, 2018 @07:44PM (#16854045)
Whether it is common knowledge or not has no bearing on whether it’s criminal, so I wasn’t using ordinary to mean “of normal computer literacy”. If you want to use some specific definitions that turn your claim into something trivially obvious, please define them ahead of time.
Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @07:50PM (#16854087)
But lots of things are legal or not based on what typical people would do or think. "Battery" is contact a normal person would find offensive. So touching someone's shoulder to get their attention is not battery, but poking someone in the rib might be. More relevantly, implied licenses to access property are defined by reference to what a normal person would consider implied. So an invitation to enter a store implies a license to access the parts a normal person would assume they can access, and not parts a normal person would assume they are not supposed to access.

It's not a technical shell game. If you asked your mom, "hey, do you think they meant to have people be able to access those documents, where you can only get to them by editing numbers in the URL," she would say "no." That's what defines what is legal or not in this context.

Re:Teenager facing prison for downloading unsecured files fr... by gowld on Monday April 16, 2018 @07:57PM (#16854127)
Google, that hotbed of criminal activity, is displaying links to and even accepting paid advertising for these illegal devices that can access telecommunications systems reachable only by editing numbers!

https://www.google.com/search?q=robodialer\

If you asked your mom, "Am I free to access all the public-facing information on the Government Freedom of Information server", what would she say? The technical details of how to make the connection are irrelevant. My mother doesn't know how to connect to a BBS, does that mean that anyone accessing a BBS is breaking the law?

Re:Teenager facing prison for downloading unsecured files fr... by pdonis on Monday April 16, 2018 @11:35PM (#16855257)
> If you asked your mom, "hey, do you think they meant to have people be able to access those documents, where you can only get to them by editing numbers in the URL," she would say "no."

No, she would say "I don't know what you're talking about, can you put that in plain English?" And then you could get her to give any answer you wanted by phrasing the plain English appropriately.

Re:Teenager facing prison for downloading unsecured files fr... by rootlocus on Tuesday April 17, 2018 @09:19AM (#16857982)
> But lots of things are legal or not based on what typical people would do or think.

Good thing computers use unambiguous protocols to communicate explicit intent.

> If you asked your mom, [...] That's what defines what is legal or not in this context.

I'm really terrified of a world where the law is made by asking laypeople what they think. Just like we don't define borders by asking random strangers on the street where countries are, I don't see how it's a good idea to define laws for technical services and protocols by asking people who barely understand computers what they think.

Re:Teenager facing prison for downloading unsecured files fr... by TheCoelacanth on Tuesday April 17, 2018 @12:45PM (#16859999)
Ordinary people don't access Freedom of Information requests. The whole site exists solely for the use of people who are not ordinary.
Re:Teenager facing prison for downloading unsecured files fr... by spacemanmatt on Tuesday April 17, 2018 @08:26AM (#16857638)
Now you're just trolling.
Re:Teenager facing prison for downloading unsecured files fr... by lopmotr on Monday April 16, 2018 @08:39PM (#16854372)
> Ordinary law-abiding people don't go fiddling with URLs

That's complete nonsense. I've often changed a URL because it didn't work and had a typo. It's right there at the top of the web browser asking everyone to fiddle with it. If you were right, the URL bar would not be editable in web browsers, so you should be complaining to Google, Apple, MS, Mozilla for leaving this criminal-use-only feature so prominently on their products.

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @07:49PM (#16854080)
A consideration of real property illustrates nothing about URLs. Speech is a much more apt comparison, in that one host says one thing, and then another, if it freely chooses to do so, responds by saying something else. (In Canada, though, the speech comparison might not help much?) This comparison is much more cogent than anything involving a "trespasser". Of course, authoritarians prefer the stupid comparison.
Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @07:58PM (#16854138)
Computers are dumb pieces of property. They are not capable of speech (though people might use them for speech), nor are they capable of "choos[ing]" to do anything. Analogies that anthropomorphize computers are nonsensical.

The only people here are the teenager and the property owner. And the intent that matters is the intent of the property owner. Did the property owner intend those documents to be publicly accessible? Would a reasonable person have assumed that those documents were not intended to be publicly accessible, because they could only be accessed by editing a URL?

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @08:19PM (#16854271)
Phones, bullhorns, billboards, postcards, bumper stickers, guitars, TV transmitters, etc. are dumb pieces of property that people use to communicate. (Why don't I have to get permission to look at your billboard?) Computing devices are different from most of these in a single respect: they can act autonomously, as their operators intend. In fact it is customary that they do so, just as it is customary that billboards are viewed by the public. Jeff Bezos doesn't have to stay at the console approving everything whizzing in and out of AWS. There's nothing anthropomorphic about recognizing that intent may be coded in such a way that a computer obeys that intent. In future please consider reading more charitably.

You post often enough on this topic that we all know your position, before you post. Consider, if you will, whether your preferred position is one that will lead to improvements. I posit that it will not. Your position, if adopted, would lead more faceless totalizing organizations to amass, against our will, more of our personal data, and to be less careful stewards of the same. We have far more to fear from those organizations than from 19yos.

Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @08:53PM (#16854450)
> There's nothing anthropomorphic about recognizing that intent may be coded in such a way that a computer obeys that intent.

What a computer does may be evidence of intent, just as a lock (or lack thereof) may be evidence of intent. But just like an unlocked door is not evidence of intent to make something accessible, neither is an unlocked computer.

> Consider, if you will, whether your preferred position is one that will lead to improvements.

The Internet belongs to ordinary people, not folks who have read the HTTP spec. (It's their world, we just live in it.) "Improvements" will be had when the rules comport with what ordinary people want and expect. Ordinary people don't think about computer security; they expect that, like in the real world, people won't go into places that don't look like they're meant for the public just because there's no locks to prevent them from doing so. The law should reflect those expectations.

Laws exist to create social norms. HN users are preoccupied with data security, but ordinary people hate security measures and are bad at it. So it seems completely backward to me to codify in the law the idea that accessing data should be presumed to be permissible just because the owner of the data didn’t secure it.

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @09:15PM (#16854577)
Sending a packet in response to some other packet is something "a computer does". Back when "ordinary people" thought that witch-dunking was an "ordinary" security measure, "ordinary people" were wrong. Improvements came not when the courts surrendered to ignorance, but when they corrected it.

Very few "ordinary people" would describe websites as "places", anyway. They don't say they're "at" Facebook, they say they're "on" it, much like they could be "on the phone" or "on TV". Maybe this hasn't always been the case, but the courts aren't tied to 1990s-era metaphors. No one on a jury remembers those silly "Welcome to the BatCave, Come on in if you Dare" geocities pages.

Incidentally, Facebook and its ilk hold ordinary people to much more complicated standards of behavior than those to which you and they would hold sites, all the time. Oh, you didn't read all 50 pages of TOS and then update the (hidden) configuration, every week? Silly user, that's why we gave all your data to the English!

Meanwhile, you don't think Facebook should have to understand how HTTP works, just because one person working at the company might not. Interesting, that the benefits go one direction and the duties go the other.

Re:Teenager facing prison for downloading unsecured files fr... by y0y on Monday April 16, 2018 @09:52PM (#16854749)
I think your arguments are well-reasoned, but I also think that you, along with others here making analogies to libraries/filing cabinets/etc. are too eager to equate physical access to internet access.

In the physical world, one can accidentally walk into a room they shouldn't have, perhaps mistaking it for the bathroom, and then leave without having committed any transgression. Entering a room you shouldn't be in doesn't mean you've automatically taken the contents of the room. On the internet, however, visiting a URL means just that. There's no "oh, it looks like I shouldn't be here" opportunity.

URLs are not doors. They aren't rooms. The same reasoning can't be applied to them, as they behave in fundamentally different ways.

Re:Teenager facing prison for downloading unsecured files fr... by defined on Monday April 16, 2018 @08:32PM (#16854339)
There was no sign that the supposedly private documents were intended to be private. I’ve often fiddled with URLs on public sites because I’ve had the intuition that something hasn’t been indexed that perhaps should have been indexed, or because of a dead link.

If those sensitive documents were on a _public_ website intended to be browsed by the _public_, who presumably did not require authentication, and the documents did not cause an “Authorization required” response when accessed, it feels rather totalitarian to treat that as a crime.

Most of the metaphors I’ve seen about this are not fitting. As excessive as the barrage of metaphors may be, allow me to add my own:

As part of a free treasure hunt, a person gives you the address of their house and says, “Whatever is not locked up is fair game for you to look over, take photos, or copy.”

You go there and have a great time. Then the homeowner has a fit because you discovered a hidden cellar full of pornography, which was apparently off limits but the door was inadvertently left unlocked. Now the homeowner is charging you with breaking and entering, saying you should have known better and it was common sense.

Re:Teenager facing prison for downloading unsecured files fr... by c22 on Monday April 16, 2018 @08:29PM (#16854328)
Of course a computer doesn't choose to do anything, but its actions do represent the choices of its operator. If I put a sign on my door the onus is on me to check if it says "All members of the public are welcome here" or "No trespassing".
Re:Teenager facing prison for downloading unsecured files fr... by ShroudedNight on Monday April 16, 2018 @08:37PM (#16854368)
At what point does the owner or their agents find themselves posessing the onus to clearly communicate their will?

The answer, even in the realm of physical property, is clearly not 'never', so where is it, and what leads you to believe its threshold was not crossed here?

Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @08:46PM (#16854413)
> At what point does the owner or their agents find themselves posessing the onus to clearly communicate their will?

The law is that the onus falls on the owner or their agents at the point where a reasonable person would not be able to infer the scope of the implied license from the circumstances.

I posit that a reasonable person (not an HN reader) would infer from a document being only accessible by editing a URL that it was not intended to be publicly accessible.

Re:Teenager facing prison for downloading unsecured files fr... by ShroudedNight on Monday April 16, 2018 @09:13PM (#16854565)
>I posit that a reasonable person (not an HN reader) would infer from a document being only accessible by editing a URL that it was not intended to be publicly accessible.

Do you view 'a HN reader' as a reasonable representation of someone skilled in the art [of creating and serving websites]?

Unless I'm missing something, the only conclusion that I can see following this line of reasoning is that skill in the art is inversely proportional to a person's 'reasonableness' in this matter.

If a quorum of experts are coherently proposing that certain actions are reasonable, even if you find them distasteful, at what point is 'reasonable' no longer reasonable?

For what it's worth, despite sounding like a rhetorical question, I am truly interested to know your thoughts on that last matter.

Re:Teenager facing prison for downloading unsecured files fr... by rayiner on Monday April 16, 2018 @09:37PM (#16854686)
Except in certain limited areas (e.g. “the reasonable doctor” standard for medical malpractice), the standard is the “reasonable person,” not the “reasonable person skilled in the art.”

People on HN are not representative, because they know about computer security and HTTP access codes. We don’t live in a world where those people get to make the rules. We live in a world where the rules are set by reference to ordinary people. My mom gets to set the rules for what’s “reasonable” (what are the social norms everyone has to follow). Not you or me.

My point is that a reasonable layman would assume that if a document was not linked or indexed from a public portion of the site, it was not meant to be accessed. That makes sense, because if the document was meant to be accessed, it would be made accessible in a way a reasonable lay person would know how to access it.

Re:Teenager facing prison for downloading unsecured files fr... by Firadeoclus on Tuesday April 17, 2018 @06:09AM (#16856941)
> My point is that a reasonable layman would assume that if a document was not linked or indexed from a public portion of the site, it was not meant to be accessed.

And others point out that editing a URL to increment an ID which is obviously sequential is absolutely a reasonable way of browsing the web. That doesn't mean a lay person has to know how to do it, but that they wouldn't think anything criminal was happening if they watched someone else do it.

Re:Teenager facing prison for downloading unsecured files fr... by jessaustin on Monday April 16, 2018 @11:39PM (#16855272)
How about a "reasonable mechanic", "a reasonable grocery clerk", or a "reasonable carpenter"? Dare we imagine a "reasonable web developer"?
Re:Teenager facing prison for downloading unsecured files fr... by shkkmo on Monday April 16, 2018 @09:08PM (#16854535)
And I posit you are wrong.

An ordinary person would infer from accessing a url and receiving information, that the information was intended to be public

Re:Teenager facing prison for downloading unsecured files fr... by judge2020 on Monday April 16, 2018 @07:55PM (#16854115)
This is more to the likes of your friend inviting you over but telling you to not open a certain door in their house. It's not illegal to then open that door, but it would be to break or pick the door's lock and then open it.
Re:Teenager facing prison for downloading unsecured files fr... by lopmotr on Monday April 16, 2018 @08:44PM (#16854400)
It's worse than that. It's the friend saying "open any unlocked doors you want", then after you do it, he remembers he left some secret things in his unlocked bedroom and wants you arrested because he didn't know the lock was broken.
Re:Teenager facing prison for downloading unsecured files fr... by harryh on Monday April 16, 2018 @10:09PM (#16854851)
You are wrong about the law here.

It might be hard to prosecute, but just because I invite you over to my house I have absolutely not granted you permission to enter any room you want.

If you, for example, went into my office and started rifling through my file cabinet that would be a huge invasion of my privacy despite the fact that I (like many people) do not have a physical lock on my office or filing cabinet.