[Samba] Ubuntu 18:04 not getting 'home' directory from DC

L.P.H. van Belle belle at bazuin.nl
Wed Jun 20 09:36:06 UTC 2018


Hai Bob, 

And what does the wiki tell you about RID/AD backend AND .....
Well even i had troubles finding the page again. So.. .its not you..  

The wiki, is getting to complex and is having to much side links to other pages. 
You need to set one or more of the following settings.

        template homedir = /home/%D/%U
        template shell = /bin/false
        usershare template share =
        winbind nss info = template
 

Rowland can  you follow this path. 
( think in, install a member ) 
1) https://wiki.samba.org/index.php/Setting_up_Samba_as_a_Domain_Member 
Look for any reference for the template settings, if you use RID. 

Maybe its an option to link some specific settings to these on the page. 
ad  idmap config ad  idmap_ad(8)  
rid  idmap config rid  idmap_rid(8)  

Anyhow, for you i suggest the folling. 

Member : home path in the share. 
/mnt/Filestore/user-folders

And this is the default: 
        template homedir = /home/%D/%U

Change/add this 
        template homedir = /mnt/Filestore/%U 



Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens Bob 
> Thomas via samba
> Verzonden: dinsdag 19 juni 2018 20:57
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] Ubuntu 18:04 not getting 'home' directory from DC
> 
> Hello,
> 
> I've been trying to get Ubuntu 18.04 to work with Samba AD, 
> seems I am 
> almost there but am unable to get home directories to mount 
> properly.  
> The domain join went without a problem but because the 
> default cifs ver 
> changed in Ubuntu to get other Samba shares on a samba file server to 
> mount I had to add to it's smb.conf:
> 
> client min protocol = SMB2
> client min protocol = SMB3
> 
> So I can now mount shares, but home directory will not mount 
> and build 
> on the Ubuntu 18.04 client.  I believe the the issue is this:
> 
> On Ubuntu 16.04 client getent passwd kiarar properly gives 
> the DC's home 
> directory setting of:
> root at CY-SALES-JM:~# getent passwd 'kiarar'
> kiarar:*:10155:10001:Kiara Ratcliff:/mnt/home/kiarar:/bin/sh
> 
> On Ubuntu 18.04 client  getent passwd kiarar gives:
> root at CY-SALE:~# getent passwd 'kiarar'
> kiarar:*:10155:10001::/home/CY/kiarar:/bin/false
> 
> So it gets the correct UID and GID but not the login shell or home 
> directory set in the UNIX Attributes tab.
> 
> Samba DC version 4.8.2 on Ubuntu 18.04 config:
> 
> [global]
>          netbios name = CY-DC
>          realm = CY.MYDOMAIN.COM
>          workgroup = CY
>          server role = active directory domain controller
>          server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, 
> drepl, winbindd, ntp_signd, kcc, dnsupdate
>          idmap_ldb:use rfc2307 = yes
>          idmap config CY:unix_nss_info = yes
>          ldap server require strong auth = no
>          allow dns updates = nonsecure and secure
>          log level = 2
>          ntlm auth = yes
> 
> # stops cups errors in log file
>          load printers = no
>          printing = bsd
>          printcap name = /dev/null
>          disable spoolss = yes
> 
> [netlogon]
>          path = /var/lib/samba/sysvol/cy.cybernetics.com/scripts
>          read only = No
> 
> [sysvol]
>          path = /var/lib/samba/sysvol
>          read only = No
> 
> Samba File server version 4.7.4 on Ubuntu 16.04 config:
> 
> [global]
>          realm = CY.CYBERNETICS.COM
>          workgroup = CY
>          netbios name = cy-vault
>          security = ADS
>          server role = member server
>          encrypt passwords = yes
>          client min protocol = SMB2
>          client max protocol = SMB3
> 
>          idmap config *:backend = tdb
>          idmap config *:range = 2000-9999
> 
>          idmap config CY:backend = ad
>          idmap config CY:schema_mode = rfc2307
>          idmap config CY:range = 10000-99999
>          idmap config CY : unix_nss_info = yes
> 
>          winbind trusted domains only = no
>          winbind use default domain = yes
> 
>          vfs objects = acl_xattr
>          map acl inherit = Yes
>          store dos attributes = Yes
> 
>          username map = /etc/samba/user.map
> 
>          log level=3
>          log file = /var/log/samba/log.%m
>         max log size = 500
> 
> # Stops cups errors in log file
>          load printers = no
>          printing = bsd
>          printcap name = /dev/null
>          disable spoolss = yes
> 
> ####### User folder for Ubuntu ##########
> 
> [home]
>      comment = UNIX Home Directories
>      path =  /mnt/Filestore/user-folders
>      read only = no
>      level2 oplocks =no
>      oplocks = no
>      locking = no
>      strict locking = no
> 
> Any help?
> 
> Bob Thomas
> 
> 
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba
> 
> 




More information about the samba mailing list