News for hackers. Stuff that matters.
Re:The Framework Laptop Chromebook Edition by wyldfire on Wednesday September 21, 2022 @09:42PM (#32933907)
I'm a fan of Linux and a fan of ChromeOS. but are the user experience and security better on ChromeOS than Linux? It's a bit simpler than linux but I'd say Linux is a close second.
Re:The Framework Laptop Chromebook Edition by kweingar on Wednesday September 21, 2022 @11:45PM (#32934581)
(Disclaimer: I work on ChromeOS at Google)

I would let anyone, even a total stranger, use my Chromebook in guest mode without a second thought (as long as I am reasonably sure they won’t steal it, break it, or disassemble it).

Re:The Framework Laptop Chromebook Edition by javawizard on Thursday September 22, 2022 @01:56AM (#32935203)
(Disclaimer: I also work at Google but not directly on ChromeOS.)

Exactly. I would never let my (non-tech savvy) grandparents near a Linux machine without supervision, but I wouldn't hesitate to let them near a Chromebook in guest mode.

Linux is quite secure in the hands of an experienced user. ChromeOS is secure in the hands of anyone who's not state sponsored attacker-adjacent.

Re:The Framework Laptop Chromebook Edition by grey_earthling on Thursday September 22, 2022 @03:30AM (#32935765)
It depends what you mean by “secure”. I don't count leaking data to Google as “secure”.
Re:The Framework Laptop Chromebook Edition by quicklime on Thursday September 22, 2022 @03:18AM (#32935684)
It's not quite the same as "guest mode" on ChromeOS, but I make user accounts (no sudo) for non-technical family members and let them use my machines unsupervised. What are you worried about here? Should I be worried?
Re:The Framework Laptop Chromebook Edition by kweingar on Thursday September 22, 2022 @11:46AM (#32940571)
It depends on how much you trust your family members and whether you worry about non-root malware.

Looking at my Linux machine, I notice that the default permission for home directories is 755. If I don’t think to tweak that, then I’m potentially exposing a lot of sensitive data to other users (and potentially the programs they run).

I’m a proficient Linux user but not an expert, and I’m racking my brains to think of what else might be exposed to other users on my machine.

Re:The Framework Laptop Chromebook Edition by bravetraveler on Thursday September 22, 2022 @12:36PM (#32941313)
I'm similarly racking my brain, and I came to the same finding.

755 permissions on the home directory lets others see what you have, which isn't great.

The good and bad news is, permissions on the files matter too.

SSH (private) keys for example categorically won't work outside of 600 permissions, meaning nobody else can read your private key - without escalating privileges

Now, if you go defining auth secrets in your shell profile (which is world-readable by default), probably something to reconsider.

Restricting umask is a good protection for this, for what it's worth. You can make it so that newly created files/directories are not accessible to the world

Re:The Framework Laptop Chromebook Edition by kelnos on Thursday September 22, 2022 @08:35PM (#32946490)
> Looking at my Linux machine, I notice that the default permission for home directories is 755.

Whoa, what? I'm running Debian, and it's 700 for me. What distro are you running? This seems like a bad choice by the distro maintainers...

Re:The Framework Laptop Chromebook Edition by iszomer on Sunday September 25, 2022 @11:22AM (#32972206)
> I’m racking my brains to think of what else might be exposed to other users on my machine.

Including root?

Re:The Framework Laptop Chromebook Edition by bravetraveler on Thursday September 22, 2022 @09:22AM (#32938429)
What do you think your technically inept family could actually do to your Linux system?

The permission model is such that the most damage they should be able to do, is to an account you've provided to them

Or are we assuming they get sudo and unlimited time, like the typewriter thing?

I'd be more worried handing it over to a experienced person who's familiar with rd.break, assuming the filesystem isn't encrypted

I specifically give family members Linux so I don't have to go clean hundreds of toolbars and the like, as I've had to with their Windows boxen

Re:The Framework Laptop Chromebook Edition by cmatthias on Thursday September 22, 2022 @07:46AM (#32937545)
Would you be at all concerned about the security and privacy of your guest user’s data, given your employer’s propensity for slurping up and storing whatever user data they can get their hands on? What if your guest user was searching for terms related to abortion in a US state where that procedure is (or will shortly be) illegal? What if they’re doing that and you happen to be physically near a provider of abortions?[1]

Security does not only mean security of your own data stored on the device. A device made by Google will never be secure.

[1] https://www.politico.com/news/2022/07/18/google-data-states-...

Re:The Framework Laptop Chromebook Edition by kweingar on Thursday September 22, 2022 @11:26AM (#32940227)
The host operating system does not give me more or less confidence in the security of a guest user’s web browsing data.
Re:The Framework Laptop Chromebook Edition by cmatthias on Thursday September 22, 2022 @02:32PM (#32942827)
Then you are either uninformed or willfully ignorant of 1) how operating systems and browsers work and 2) your employer's past actions relating to collecting and storing user data.
Re:The Framework Laptop Chromebook Edition by kweingar on Thursday September 22, 2022 @02:50PM (#32943050)
I am uninformed as to how running a Google search as a guest user on ChromeOS has different privacy implications that running that same search using another operating system.

Sure, if I carried around a privacy-centric Linux box and told my guest to use Tor browser, I could see how that could change the privacy picture. But that isn’t exactly an apples-to-apples comparison.

If you believe that having the guest user run their search on a typical Linux, Windows, or macOS machine would be better for their privacy, I would be interested to hear how.

Also, if they’re running the search in guest mode and they don’t log into a Google account, nobody can know who’s making the search. It’s not like they’re looking through the webcam or something.

Re:The Framework Laptop Chromebook Edition by cmatthias on Thursday September 22, 2022 @03:39PM (#32943683)
Your scenario is oddly specific -- I didn't say anything about a Google search, or about ensuring that the user doesn't log in. In fact, going to www.google.com in an incognito window pops up a little animated box on the right hand side encouraging me to sign in, so I'd expect there's a good chance that my guest user _would_ sign in if they visit a Google-owned site.

> If you believe that having the guest user run their search on a typical Linux, Windows, or macOS machine would be better for their privacy, I would be interested to hear how.

The main reason is that Google controls the entire environment on a ChromeOS device (kernel, userland, browser), and ChromeOS is closed source so it's not possible for me to easily know what is going on. In addition, Google makes money by collecting data about users, so there is an incentive to collect as much information as they can get away with (and they've shown repeatedly in the past that they do just that). Maybe there's a daemon running in the background shipping URL history off to some Google endpoint in the name of "telemetry", or maybe not. Or maybe it's something more innocuous-sounding like hashed or anonymized data (which could be reconstructed given Google's immense amount of data). But I don't know, and I don't think it's reasonable for anyone to implicitly trust ChromeOS at all given the business model of the company that makes it.

On most Linux distributions, nearly everything is open source and I'm free to audit what's going on. On macOS devices, the software is closed source, but the company's business model does not involve building a dossier on each and every person on the planet, so I trust them more (not fully, but more). In the past I would have said the same about Windows, but lately I'm not so sure and I tend to put them in the same bucket as Google.

edit: Also see my reply to you in a different sub-thread where I explain this in terms of threat models. If you were building a secure OS to protect high-risk individuals like journalists reporting on intelligence leaks, you would be crazy to recommend that the journalists to use an OS built for them by the NSA, MI5, or FSB. Would you feel any better about the recommendation if the government agency said "Don't worry, as long as you use guest mode and don't sign in, we won't collect any data about you"?

Re:The Framework Laptop Chromebook Edition by wyldfire on Thursday September 22, 2022 @10:04AM (#32938900)
I guess in practice this doesn't come up often. but it's a powerful testament to your confidence in ChromeOS' security. You are implying that you don't feel the same way about a Linux user guest login. But why? What additional security measures are present in ChromeOS that are missing from popular Linux distros?

I don't doubt the features are there, I'm genuinely curious what they are.

Re:The Framework Laptop Chromebook Edition by kweingar on Thursday September 22, 2022 @12:10PM (#32940964)
You can harden and configure a Linux system to have many of the ChromeOS security features, but ChromeOS has all of these enabled by default:

- All user data is encrypted at the login level. A guest user cannot access any other users’ data. Whereas in Ubuntu, for example, home directories have 755 permissions.

- The Linux userspace in ChromeOS is actually running on KVM, so ChromeOS itself is insulated from user-installed malware.

- Verified boot is huge. It is theoretically impossible for a modification to system-level software to survive a reboot. An attacker would have to modify the hardware too. And even if someone stole your Chromebook and modified the hardware to run malware, your data is still encrypted.

If you are interested, a more thorough explanation can be found here: https://chromium.googlesource.com/chromiumos/docs/+/HEAD/sec...

Re:The Framework Laptop Chromebook Edition by cmatthias on Thursday September 22, 2022 @02:44PM (#32942963)
What if the attacker is the one who built and shipped the OS to begin with? Everything you say is true, but it doesn't matter as long as user data (history, location, etc) is being shipped off to Google.

Or, put another way: your threat model is a nefarious hacker or three-letter-agency who might secretly modify your hardware/software to get your data. Mine is surveillance capitalism. ChromeOS is secure under your threat model, but is _built by the attacker_ under mine.

Both of these threat models are important to consider, but one is much more relevant to a larger portion of the population than the other.

Re:The Framework Laptop Chromebook Edition by sulam on Friday September 23, 2022 @01:44PM (#32954979)
Relevant from your POV. A very large part of the planet clearly doesn't care.
Re:The Framework Laptop Chromebook Edition by cmatthias on Friday September 23, 2022 @10:47PM (#32959330)
I said it was more relevant than nefarious hackers or government agencies, not relevant in some subjective general sense. So whether or not they care is irrelevant to my point.
Re:The Framework Laptop Chromebook Edition by TingPing on Wednesday September 21, 2022 @10:47PM (#32934287)
No they don't compare at all. ChromeOS is highly sandboxed and limited in a way desktop Linux can hardly do with normal apps.
Re:The Framework Laptop Chromebook Edition by cowmoo728 on Wednesday September 21, 2022 @10:57PM (#32934345)
I can't hand my non-technical family member a Linux device and expect it still work a week later without any intervention.
Re:The Framework Laptop Chromebook Edition by Self-Perfection on Thursday September 22, 2022 @02:08AM (#32935266)
Do you have an example what might go wrong? I cannot imagine how can one mess up desktop Linux system without root privileges. Totally fill up the storage maybe?
Re:The Framework Laptop Chromebook Edition by _nalply on Thursday September 22, 2022 @07:47AM (#32937554)
They go to a shady website telling them to open a terminal and entering `sudo rm -fr /`, and you got unlucky that they entered the same password they used when logging in.

But! It's your fault! They shouldn't be able to sudo!

But that's the point. If they couldn't sudo, they could do something else as disastrous. It is difficult to secure a Linux system if the user is allowed to log in. If I needed to give someone access, I just would give him a freshly installed Linux virtual system, and if he deleted something important, it's his problem, not mine.

Re:The Framework Laptop Chromebook Edition by PlqnK on Thursday September 22, 2022 @08:17AM (#32937811)
Without sudo privileges the worst they can do is nuke their own home directory, nothing else because that's the only path where they have write access.
Re:The Framework Laptop Chromebook Edition by aembleton on Thursday September 22, 2022 @03:40AM (#32935850)
Delete .config
Re:The Framework Laptop Chromebook Edition by pjerem on Thursday September 22, 2022 @06:56AM (#32937198)
Why would they delete files they cannot see without opting to see them ?
Re:The Framework Laptop Chromebook Edition by aembleton on Friday September 23, 2022 @11:18AM (#32953086)
Because they hit ctrl+h instead of ctrl+v by accident once.
Re:The Framework Laptop Chromebook Edition by squarefoot on Thursday September 22, 2022 @12:38PM (#32941344)
I installed Linux to a number of people, mostly over 50, some over 70. All of them but one kept using it, and the one who went back to Windows was forced because of an application he had at work whose copy protection made it impossible to run it under WINE. That was some years ago, with Linux desktop less advanced than it is now, and before the Windows GUI experience reached its lowest with Win 8 and beyond.

If you spend some time configuring the OS, Linux is actually much easier and safe to use than Windows for a series of often overlooked reasons:

1- Application installation and removal is centralized: you fire up the distribution package manager and can install almost all software, including lots of 3rd party, using the same interface; no need to wander around the net with the risk of landing on a malicious page disguised as a download site.

2- Drivers are built at kernel level and nearly all of them are already included: if you buy a new device, chances are that besides not having to insert any drivers CD, they are already included in the distribution.

3- Hardware support doesn't come with added bloatware: say, you connect the new printer and can safely ignore the accompanying CD or their manufacturer's site downloads, which usually will attempt to make you download crippled version of commercial products and other junk along the drivers. Under Linux you use the supplied applications with all hardware of that class.

etc.

Some 20 years ago I was working at a company operating in the sports betting field; we had abut 50 points of sale deployed all over the country and my assignment was to find a way to allow each remote point of sale to work in the safest possible way, no distractions and including remote support on demand. All of this of course in the cheapest possible way. The best thing about working in a small company is that sometimes you can earn the freedom of choosing the rope to hang yourself with: I'm not interested in the betting world, but that problem was intriguing, and I had carte blanche. The solution I came up with after some fiddling was a RedHat distro plus WindowMaker "desktop" with a restricted launcher whose dockapps allowed the operator to check/write emails, file for a remote support connection, open StarOffice and a couple other things I don't recall. The system was essentially in kiosk mode, with the browser set so that it would open fullscreen to operate only on the company webpage. I had to write the scripts to file for remote support since all the points of sale had dynamic IPs which could change by the time we could reach them, therefore the connection had to be the other way around. I solved this by using a remote "pinger" written in Ruby that would periodically send some data about the remote station, so we immediately had the who+where data pair, and a receiving Ruby application on our side would populate a GTK list (I used Glade and Anjuta iirc) with the stations that asked for intervention. As soon as a local operator clicked on one element, a reverse ssh tunnel was opened and we had the remote shell ready. To my memory that contraption never failed; with very slow connections (~2002, so 1 Mbit down/ 128Kbit up when we were lucky) luxuries such as VNC were out of question. 50 points of sales could be easily managed by a single operator.

Of course I'm not suggesting to turn every Linux PC in a tight closed terminal that does 3 things only. My point is that you can effectively turn a Linux desktop into something that non tech people can work without troubles, but that doesn't come out of the box, as it doesn't with Windows: you can have everything from a dumbed down terminal that couldn't be crashed by a colony of cats walking on the keyboard for a week, to something so advanced and full of knobs that you can literally do everything, including shooting yourself in the foot. Some work is needed though.

Re:The Framework Laptop Chromebook Edition by kelnos on Thursday September 22, 2022 @08:38PM (#32946517)
I expect that the user experience and security are better on ChromeOS. But that depends on who you're trying to secure against. I'm not particularly worried about state-level actors or even garden-variety malware. But I am worried about surveillance capitalism, and that's what Google has built its business around. So I would not trust ChromeOS to be secure against Google.

(Having said that, I still haven't been able to completely wean myself off Google services, so Google already has plenty of data on me, and gathers more every day.)