Re:Bottles – Run Windows software and games on Linux
by ddtaylor on Tuesday February 01, 2022 @03:54AM
(#30160126)
Not really because it requires very esoteric configurations to avoid other users reading important files of yours. Unless you're willing to modify your default SSH (and other, apache, etc.) configurations out-of-the-box setup will leave all your data readable by other users.
[ Parent
| on HN ]
Re:Bottles – Run Windows software and games on Linux
by hparadiz on Tuesday February 01, 2022 @04:41AM
(#30160414)
In the linux world it's standard operating procedure to make a separate user/group for every service and ensure the file system is cognizant of that. And the default in ubuntu runs mysql with mysql user and nginx / apache with www-data as a user.
Re:Bottles – Run Windows software and games on Linux
by ddtaylor on Wednesday February 02, 2022 @01:15AM
(#30174411)
That's correct, but if you want to keep any files that services like that access, such as SSH keys/authorized_keys you need to give them access to your directories. Because of this you can't make your home directory only readable by your user, since then sshd cannot access `~/.ssh` to check your authorized_keys file. The same is true for running a web server in `~/public_html` and anything else.
The agreed upon solution to this is to make the home directory readable, then split the files into a `~/public` and `~/private` directory, which is well accepted in the server space but completely non-adopted and not straightforward in the desktop space. It's technically possible to modify your $XDG_DATA_DIR and other similar configurations, but many programs and tools still don't care and will only look for and operate on configuration files in `~/.config` or `~/.local` or worse yet just `~/.foo`.