[Samba] automatic home dirs

Marco Gaiarin gaio at sv.lnf.it
Fri Oct 26 08:58:05 UTC 2018


Mandi! David Bear via samba
  In chel di` si favelave...

> So I would like to use the original [homes] share method. So, I go back to
> 'windows does not support this feature'..

I have a share like:

  [users]
        comment = Home Directories
        path = /home
        browseable = no
        read only = no
        store dos attributes = yes
        force create mode = 0600
        force directory mode = 0700
        veto files = /.mail/.inbox/
        root preexec = /etc/samba/createhome "%U"

'/etc/samba/createhome' is a simple bash script that create home and
set quota.

-- 
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