canonical / lightdm

Display Manager
GNU General Public License v3.0
845 stars 139 forks source link

lightdm automatically mounts all network home directories on startup #362

Open itepak opened 5 months ago

itepak commented 5 months ago

I want to automount my network based home directories on login. I'm using autofs rolled out by FreeIPA.

auto.home:
* -fstype=ceph,name=user,secretfile=/etc/ceph/ceph.client.user.keyring,noatime,_netdev server:/home/&

This line basicly states that any folder under server:/home/ will be mounted when accessed. Lightdm looks up home directories for a fancy user icon and by doing it mounting the users home directory - all of them. I want to disable this. There are settings like minimum-uid in /etc/lightdm/users.conf and others which could prevent this. But apparently they are read after the fact that all directories are already looked up.

Here is a two year old issue with the same problem https://github.com/canonical/lightdm/issues/254. They are using AccounsService to prevent this and that is actually working! However, I don't think this is a good solution because I don't understand the purpose of this service [edit:] and it's a potential security risk.