[Samba] Mount AD home directory and login on Ubuntu Workstations

Marco Gaiarin gaio at sv.lnf.it
Thu Feb 7 10:05:56 UTC 2019


Mandi! Giovanni Caini via samba
  In chel di` si favelave...

[Giovanni, se vuoi c'è anche la lista 'samba-it'...]

> On Ubuntu Desktop 18.04 workstation (member domains), how can I set up
> automatic mount of those folders (with an eventually dekstop shortcut)?
> How can I set up gnome login using domain credentials

Basically:

a) use winbind as a NSS provider; tipycally you have to setup a basic
 smb.conf as a member server, join the domain and stop. Yiou don't need
'samba', eg:
	apt-get install winbind libnss-winbind libpam-winbind
suffices.

b) you can use winbind as PAM provider (typically, in debian/ubuntu you
 get configured automagically with a).

c) you can configure kerberos as PAM provider, tipically this involve:
	apt-get install libpam-krb5 krb5-config
 and reply with the correct kerberos domain to the answer.

d) you can use 'pam_mount' to mount homes (and other shares) with CIFS:
	apt-get install libpam-mount cifs-utils
you have to configure '/etc/security/pam_mount.conf.xml'.


>, without save changes to home folder on logout (like ghost user)?

This involve i think something like 'pam_mkhomedir' and a bit of
scripting.

-- 
dott. Marco Gaiarin				        GNUPG Key ID: 240A3D66
  Associazione ``La Nostra Famiglia''          http://www.lanostrafamiglia.it/
  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797

		Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
      http://www.lanostrafamiglia.it/index.php/it/sostienici/5x1000
	(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)



More information about the samba mailing list