In short, my question is “Is there a way to prevent a non-malicious but unknowledgable and clumsy user to ruin their own home directory?”
Say my grandma opens a file browser looking for a picture, finds those dot files or those mysteriously-named directories distracting, sets her mind to deleting them. And assume she somehow finds a way to do so. While I understand that dot files or mysteriously-named directories of a non-privileged user are of no ultimate importance, it is a maintenance nightmare.
Plus, it’s not only mysterious files that are prone to be targetted. She might well delete by accident the picture she was looking for.
Two kinds of solutions that come to mind are: -Restrict file permissions in an adequate way -Implement an easily operable, fool-proof, back-in-time scheme
Is there a mainstream, well-supported distro of GNU/Linux that has figured this use-case out?
I figure it might come in handy when Window 10 is no longer supported and the reports of hacks keep coming in.
I’d go with NixOS in impermanence mode coupled with home-manager and a NixOS service that does the backup “cron job” that another poster talked about (just in case).
Even if she somehow managed to brick the system, you could completely restore it within minutes to the EXACT state you left it in using just these three or four Nix tools. Hell, she could even do it herself by rebooting and selecting a previous config at the start screen. All she needs to do is be able to press down and enter.
That will be unpopular but… buy a used iPad instead of trying to find the holy grail of *-proof computer.
But I don’t want to buy an iPad. That’s why I made this post.
Believe me I tried that many times, with many people. At some point one just can’t adopt neither Linux nor windows, or macOS.
If you absolutely want a computer, because of special needs or a specific use case, you may find inspiration anyway from some half baked attempts of manufacturers to build an senior friendly OS and hardware. Overpriced and designed by people not knowing what they were doing, at least it was like they a decade ago.
I’ve been there too, the best success I had was :
- An IBM (now Lenovo) laptop because strong as a tank, yes it did fall a couple of times.
- Debian with a non root account.
- A printer, yes, there will be screenshots and whole websites prints, because it reads better and it doesn’t run away when you inadvertently drag and click the mouse
- FVWM95 because windows 95-98-vista desktop is what one did actually saw on TV series and movies.
- BIG FONTS, zoomed views by default nowadays I would go for a wide screen.
- Everything, every clickable item or icons removed from the start menu but internet, mail, print, remote help, power off. No word processors, no games, no calculator nothing. Mail IS the word processor. Excel is the good old desktop calculator sitting just there.
- Exactly same icons internet, mail, print, remote help, power off icons on the desktop matching the start menu.
- « Mail » was a shortcut to yahoo mail. Nowadays there may be better options.
- Remote help: this was a VNC server in teacher - school mode, to connect my computer (teacher) and grant me remote hands with nothing more (not event the local IP, or the teamviewer session ID…) because when this icons was clicked it was already a panicky situation there.
- Internet: at that time it was Firefox with all plugins, a custom home page with mail and google , same thing on the shortcut bar. A windows 95 skin and read only (chmod) on some config files so it wouldn’t be broken (again accidental mouse drag and click will wreak the interface, removing or adding one bookmark, accepting a ad for a new search engine that will replace the default search engine).
… Omg I started typing and now I remember how difficult it was technically and how hard it was to help people trying to be a decent human being every single time. Everything will break in a way neither you nor the user could imagine or understand how it happened clearly.
Buy an iPad.
Maybe an immutable distro like NixOS?
Immutable distros aren’t immutable in the home folder though, they would be unusable otherwise, so that doesn’t solve OPs problem of dotfiles/personal files (I know nixOS tries to get rid of dotfiles, but in my experience that almost never works, it’s only helpful for replacing config files in /etc)
home-manager for NixOS has escaped your notice. ALL of my dot files are declared in my nix-config.
Furthermore, this module would likely complete the possibility of building a grandma-proof immutable OS complete with immutable home folders: https://wiki.nixos.org/wiki/Impermanence