linuxmuster / linuxmuster-client-adsso

Scripts and configuration for ubuntu clients to connect to the linuxmuster.net 7 ad
2 stars 2 forks source link

snaps don't work in domainuser homes #26

Closed zefanja closed 4 years ago

zefanja commented 4 years ago

If you want to use snap apps in Ubuntu (like Chromium and other) they don't work when you are logged in as a domain user. This is because snap expects the home to be in /home/user and not in a subdirectory (like linuxmuster-adsso-setup sets it up → /home/cache/user). More infos here: https://forum.snapcraft.io/t/how-can-i-use-snap-when-i-dont-use-home-user/3352

Is there a critical reason why all domain user homes are in /home/cache/? A workaround would be to change override_homedir to something like /home/%d_%u in sssd.conf.

jolly-jump commented 4 years ago

Hm, interesting. Well, not interesting, bullshit coding of the snap-developers as far as I followed the link. Thanks for the input and the fix/workaround. I think we need to test this before merging - does it work for you?

zefanja commented 4 years ago

I think we need to test this before merging - does it work for you?

Yes, it does.

jolly-jump commented 4 years ago

Ok, we are still in an early phase, but a change like this needs to be brought to attention. People are probably building scripts depending on /home/cache and the documentation needs to be fixed here: https://github.com/linuxmuster/linuxmuster-client-adsso/wiki maybe, I guess. Anyway. I will add this for the next release.

PLanB2008 commented 4 years ago

There are several problem with the current approach regarding snap packages. This is a deeper problem.

foer commented 4 years ago

Issue can be solved by:

#sudo dpkg-reconfigure apparmor

In the ncurse input box write down the path to the domainuser-homes:

/home/cache/

Thats's it. All snaps installed by the template user will be available for the domainusers.