[Samba] Warning about using snaps (ubuntu)

Rowland Penny
2022-07-06T20:24:30Z

On Wed, 2022-07-06 at 20:10 +0000, samba-ml-en via samba
wrote:
> Dear list members,
>
> I have met yet another issue with Ubuntu and what is considered a
> standard with Samba.
>
> Ubuntu is now mainly using snap for many apps. After joining my
> domain, I realised no snaps could run, and found out that snaps
> cannot run outside of the /home/$USER directory. Meaning they will
> NOT run in /home/$DOMAIN/$USER.
>
> So you have to do the following in smb.conf
>
> # template homedir = /home/%D/%U
> template homedir = /home/%U
>
> Otherwise, snaps will not start due to apparmor blocking them, I
> could not not find a workaround so far.

I think you need to log a bug on Ubuntu, As standard
'/home/$DOMAIN/$USER' is the default.

Let them fix their problem :-)

Rowland