Hello, My samba share is on a Linux Centos 7, samba version 4.8.3. Please find here is my smb.cnf : [global] ??? security = ads ??? realm = MYDOMAIN.MYDOMAIN.LOCAL ??? workgroup = MYDOMAIN ??? kerberos method = secrets and keytab ??? server signing = mandatory ??? client signing = mandatory ??? hosts allow = 127. 10.x.x. 10.x.x. ??? hosts deny = 10.x.x. 10.x.x. ??? log file = /var/log/samba/%m.log ??? max log size = 5000 #??? https://wiki.samba.org/index.php/Setting_up_Audit_Logging ??? log level = 1 auth_audit:3 ??? local master = no ??? domain master = no ??? preferred master = no ??? use sendfile = true ??? winbind use default domain = yes ??? load printers = no ??? cups options = raw ??? printcap name = /dev/null ??? disable spoolss = yes ??? vfs objects = acl_xattr ??? map acl inherit = yes ??? store dos attributes = yes ??? idmap config * : backend = tdb ??? idmap config * : range = 15000-99999 ??? winbind nss info = rfc2307 ??? idmap config MYDOMAIN : backend = ad ??? idmap config MYDOMAIN : schema_mode = rfc2307 ??? idmap config MYDOMAIN : range = 10000 - 14999 ??? idmap config MYDOMAIN : unix_nss_info = yes ??? idmap config MYDOMAIN : unix_primary_group = yes ??? client min protocol = SMB2 [groups] ? comment = myserver ? path = /var/datashared ? public = no ? writable = yes ? guest ok = no ? valid users = @"MYDOMAIN\utilisateurs du domaine" ? vfs objects = acl_xattr streams_xattr shadow_copy2 ? shadow:snapdir = /data/datashared/snapshots ? shadow:basedir = /var/datashared ? shadow:sort = desc ? shadow:localtime = yes [homes] ??? comment = Home Directories ??? read only = No ??? create mask = 0700 ??? directory mask = 0700 ??? valid users = @"MYDOMAIN\utilisateurs du domaine" ??? path = /home ??? hide files = /~*.tmp/profile/desktop.ini/~$*/ ??? browseable = no ??? public = no ??? guest ok = no [printers] ??? comment = All Printers ??? path = /var/tmp ??? printable = Yes ??? create mask = 0600 ??? browseable = No [print$] ??? comment = Printer Drivers ??? path = /var/lib/samba/drivers ??? write list = root ??? create mask = 0664 ??? directory mask = 0775 On an older samba share (version 3.5.6), only \\myserver was visible in windows explorer for both [groups] and [homes] Edouard Le 17/07/2019 ? 12:52, Rowland penny via samba a ?crit?:> On 17/07/2019 16:46, Edouard Guign? via samba wrote: >> Dear Samba Users, >> >> I set 2 samba shares : >> 1. with the name [groups] >> /pathtomyshare/groups >> >> 2. for each domain users [homes] >> /home >> >> In Windows, I can see with the windows explorer my shares : >> groups (\\myserver) (V:) >> mydomainuser (\\myserver\homes) (U:) >> >> Why for [groups] is only indicated \\myserver and for [homes] is >> indicated \\myserver\homes ? >> >> Is there a way to change it ? I would only show \\myserver for the >> both shares? >> >> Best Regards, >> >> Edouard >> >> > You cannot use the same name for two shares. > > I think you need to post your entire smb.conf, so we can try and sort > your problem ;-) > > Rowland > > >
On 17/07/2019 17:07, Edouard Guign? via samba wrote:> Hello, > > My samba share is on a Linux Centos 7, samba version 4.8.3. Please > find here is my smb.cnf : > > [global] > ??? security = ads > ??? realm = MYDOMAIN.MYDOMAIN.LOCAL > ??? workgroup = MYDOMAIN > ??? kerberos method = secrets and keytab > ??? server signing = mandatory > ??? client signing = mandatory > > ??? hosts allow = 127. 10.x.x. 10.x.x. > ??? hosts deny = 10.x.x. 10.x.x. > > ??? log file = /var/log/samba/%m.log > ??? max log size = 5000 > #??? https://wiki.samba.org/index.php/Setting_up_Audit_Logging > ??? log level = 1 auth_audit:3 > ??? local master = no > ??? domain master = no > ??? preferred master = no > ??? use sendfile = true > ??? winbind use default domain = yes > > ??? load printers = no > ??? cups options = raw > ??? printcap name = /dev/null > > ??? disable spoolss = yes > > ??? vfs objects = acl_xattr > ??? map acl inherit = yes > ??? store dos attributes = yes > > ??? idmap config * : backend = tdb > ??? idmap config * : range = 15000-99999 > ??? winbind nss info = rfc2307 > ??? idmap config MYDOMAIN : backend = ad > ??? idmap config MYDOMAIN : schema_mode = rfc2307 > ??? idmap config MYDOMAIN : range = 10000 - 14999 > ??? idmap config MYDOMAIN : unix_nss_info = yes > ??? idmap config MYDOMAIN : unix_primary_group = yes > > ??? client min protocol = SMB2 > > > [groups] > ? comment = myserver > ? path = /var/datashared > ? public = no > ? writable = yes > > ? guest ok = no > > ? valid users = @"MYDOMAIN\utilisateurs du domaine" > > ? vfs objects = acl_xattr streams_xattr shadow_copy2 > ? shadow:snapdir = /data/datashared/snapshots > ? shadow:basedir = /var/datashared > ? shadow:sort = desc > ? shadow:localtime = yes > > > [homes] > ??? comment = Home Directories > ??? read only = No > ??? create mask = 0700 > ??? directory mask = 0700 > ??? valid users = @"MYDOMAIN\utilisateurs du domaine" > ??? path = /home > ??? hide files = /~*.tmp/profile/desktop.ini/~$*/ > ??? browseable = no > ??? public = no > ??? guest ok = no > > [printers] > ??? comment = All Printers > ??? path = /var/tmp > ??? printable = Yes > ??? create mask = 0600 > ??? browseable = No > > [print$] > ??? comment = Printer Drivers > ??? path = /var/lib/samba/drivers > ??? write list = root > ??? create mask = 0664 > ??? directory mask = 0775 > > On an older samba share (version 3.5.6), only \\myserver was visible > in windows explorer for both [groups] and [homes] > > Edouard > > Le 17/07/2019 ? 12:52, Rowland penny via samba a ?crit?: >> On 17/07/2019 16:46, Edouard Guign? via samba wrote: >>> Dear Samba Users, >>> >>> I set 2 samba shares : >>> 1. with the name [groups] >>> /pathtomyshare/groups >>> >>> 2. for each domain users [homes] >>> /home >>> >>> In Windows, I can see with the windows explorer my shares : >>> groups (\\myserver) (V:) >>> mydomainuser (\\myserver\homes) (U:) >>> >>> Why for [groups] is only indicated \\myserver and for [homes] is >>> indicated \\myserver\homes ? >>> >>> Is there a way to change it ? I would only show \\myserver for the >>> both shares?I can only think that Windows, for some reason, doesn't like your sharename 'groups', as the sharename should be what you connect to i.e //myserver/groups. This explains why your other share is //myserver/homes Now talking about 'homes', yours is set up incorrectly ;-) It should be: [homes] ??? comment = Home Directories ??? read only = No ??? create mask = 0700 ??? directory mask = 0700 ??? valid users = %S ??? hide files = /~*.tmp/profile/desktop.ini/~$*/ ??? browseable = no Either ensure your users have 'unixHomeDirectory: /home/USERNAME' in their AD object, or set 'template homedir = /home/%U' in the [global] section of your smb.conf Your users will then be able to connect //myserver/USERNAME Rowland
Thank you Rowland Le 17/07/2019 ? 13:39, Rowland penny via samba a ?crit?:> On 17/07/2019 17:07, Edouard Guign? via samba wrote: >> Hello, >> >> My samba share is on a Linux Centos 7, samba version 4.8.3. Please >> find here is my smb.cnf : >> >> [global] >> ??? security = ads >> ??? realm = MYDOMAIN.MYDOMAIN.LOCAL >> ??? workgroup = MYDOMAIN >> ??? kerberos method = secrets and keytab >> ??? server signing = mandatory >> ??? client signing = mandatory >> >> ??? hosts allow = 127. 10.x.x. 10.x.x. >> ??? hosts deny = 10.x.x. 10.x.x. >> >> ??? log file = /var/log/samba/%m.log >> ??? max log size = 5000 >> #??? https://wiki.samba.org/index.php/Setting_up_Audit_Logging >> ??? log level = 1 auth_audit:3 >> ??? local master = no >> ??? domain master = no >> ??? preferred master = no >> ??? use sendfile = true >> ??? winbind use default domain = yes >> >> ??? load printers = no >> ??? cups options = raw >> ??? printcap name = /dev/null >> >> ??? disable spoolss = yes >> >> ??? vfs objects = acl_xattr >> ??? map acl inherit = yes >> ??? store dos attributes = yes >> >> ??? idmap config * : backend = tdb >> ??? idmap config * : range = 15000-99999 >> ??? winbind nss info = rfc2307 >> ??? idmap config MYDOMAIN : backend = ad >> ??? idmap config MYDOMAIN : schema_mode = rfc2307 >> ??? idmap config MYDOMAIN : range = 10000 - 14999 >> ??? idmap config MYDOMAIN : unix_nss_info = yes >> ??? idmap config MYDOMAIN : unix_primary_group = yes >> >> ??? client min protocol = SMB2 >> >> >> [groups] >> ? comment = myserver >> ? path = /var/datashared >> ? public = no >> ? writable = yes >> >> ? guest ok = no >> >> ? valid users = @"MYDOMAIN\utilisateurs du domaine" >> >> ? vfs objects = acl_xattr streams_xattr shadow_copy2 >> ? shadow:snapdir = /data/datashared/snapshots >> ? shadow:basedir = /var/datashared >> ? shadow:sort = desc >> ? shadow:localtime = yes >> >> >> [homes] >> ??? comment = Home Directories >> ??? read only = No >> ??? create mask = 0700 >> ??? directory mask = 0700 >> ??? valid users = @"MYDOMAIN\utilisateurs du domaine" >> ??? path = /home >> ??? hide files = /~*.tmp/profile/desktop.ini/~$*/ >> ??? browseable = no >> ??? public = no >> ??? guest ok = no >> >> [printers] >> ??? comment = All Printers >> ??? path = /var/tmp >> ??? printable = Yes >> ??? create mask = 0600 >> ??? browseable = No >> >> [print$] >> ??? comment = Printer Drivers >> ??? path = /var/lib/samba/drivers >> ??? write list = root >> ??? create mask = 0664 >> ??? directory mask = 0775 >> >> On an older samba share (version 3.5.6), only \\myserver was visible >> in windows explorer for both [groups] and [homes] >> >> Edouard >> >> Le 17/07/2019 ? 12:52, Rowland penny via samba a ?crit?: >>> On 17/07/2019 16:46, Edouard Guign? via samba wrote: >>>> Dear Samba Users, >>>> >>>> I set 2 samba shares : >>>> 1. with the name [groups] >>>> /pathtomyshare/groups >>>> >>>> 2. for each domain users [homes] >>>> /home >>>> >>>> In Windows, I can see with the windows explorer my shares : >>>> groups (\\myserver) (V:) >>>> mydomainuser (\\myserver\homes) (U:) >>>> >>>> Why for [groups] is only indicated \\myserver and for [homes] is >>>> indicated \\myserver\homes ? >>>> >>>> Is there a way to change it ? I would only show \\myserver for the >>>> both shares? > > I can only think that Windows, for some reason, doesn't like your > sharename 'groups', as the sharename should be what you connect to i.e > //myserver/groups. This explains why your other share is //myserver/homes > > Now talking about 'homes', yours is set up incorrectly ;-) > > It should be: > > [homes] > ??? comment = Home Directories > ??? read only = No > ??? create mask = 0700 > ??? directory mask = 0700 > ??? valid users = %S > ??? hide files = /~*.tmp/profile/desktop.ini/~$*/ > ??? browseable = no > > Either ensure your users have 'unixHomeDirectory: /home/USERNAME' in > their AD object, or set 'template homedir = /home/%U' in the [global] > section of your smb.conf > > Your users will then be able to connect //myserver/USERNAME > > Rowland > > >