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. Have a great evening. Eric
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
Am 06.07.22 um 22:10 schrieb samba-ml-en via samba:> 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. >Normaly it's easy to add olders and files to apparmor I had to do it wit bind9, sssd and isc-dhcp-server. Just take a look in the log-file, apparmor will tell you everything you have to do.> Have a great evening. > > Eric-- Stefan Kania Landweg 13 25693 St. Michaelisdonn Signieren jeder E-Mail hilft Spam zu reduzieren und sch?tzt Ihre Privatsph?re. Ein kostenfreies Zertifikat erhalten Sie unter https://www.dgn.de/dgncert/index.html