It's not possible to enable linux terminal on secondary users, if private space exists and is unlocked. Specifically if you go to settings -> system and try to tap the "linux development environment" item, nothing happens. It works fine if the private space is locked, but that means you can't enable it for private space, only the secondary user. This only happens on secondary users, it works fine on the main user.
Steps to reproduce:
- as the main user, enable linux terminal in developer settings, and create a secondary user
- switch to the secondary user
- create a private space
- unlock the private space
- go to settings -> system and try to tap on the "linux development environment" option. You'll see it's not greyed out, but tapping on it doesn't do anything, or show any toasts. Nothing relevant shows up in logcat either.