what's the number of times the letter "s" appears in:
q: how to set up remote home folders on ubuntu 22.04 using cifs i'm trying to set up remote home folders for ubuntu 22.04 workstations. these workstations are joined to an ad domain using sssd and krb5, and users sign in using their ad credentials. i'm also using pam_mount to mount some cifs/smb shares using the krb5 credentials. that's all good and working.
i'd now like to host users home folders remotely, so that they can log in on different workstations and still have their settings and user data available. for that i'd like to auto-mount the /home/username folder to a cifs/smb share //server/homes/username on login using the users krb5 ticket.
i've tried setting this up with either pam_mount or autofs, but have not managed to get this working reliably. if someone could point me into the right direction there that would be much appreciated.

edit 05 feb 2023:
the thing that almost works is:

*

*mount folder /mnt/home to //server/homes with autofs

*add the following to sssd.conf: override_homedir = /mnt/home/%u
this is slightly different to my initial attempt to mount /home/username... and works sometimes. but there is some sort of race condition, where at the time ubuntu checks for the homedir the mount may or may not exist yet. result is that things either work, or you get an error msg saying "could not chdir to home directory... no such file or directory"

user
The passage contains eighty-three "s"s.
assistant