AD DC: ostraaros.vusir.local
File server: vastraaros.vusir.local
To the [global] section on the AD DC I added
host msdfs = yes <- the trick?
Created a share definition block for the DFS:
[files]
path = /data/files
comment = "Här finns allt!" <- 'Everything is here!' in Swedish.
read only = No
msdfs root = yes
Created links according to
https://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/msdfs.html:
admind@ostraaros:~$ ls -l /data/files/
total 0
lrwxrwxrwx 1 root root 39 Jun 29 13:32 demoshare ->
msdfs:vastraaros.vusir.local\demoshare
lrwxrwxrwx 1 root root 37 Jun 27 19:26 familjen ->
msdfs:ostraaros.vusir.local\familjen
lrwxrwxrwx 1 root root 33 Jun 27 19:26 home -> msdfs:ostraaros.vusir.local\home
admind@ostraaros:~$
admind@ostraaros:~$ smbclient //vusir.local/files -U davor -W VUSIR
Enter davor's password:
Domain=[VUSIR] OS=[Unix] Server=[Samba 4.1.9]
smb: \> cd home/davor\
smb: \home\davor\> ls
. D 0 Wed Apr 23 07:57:52 2014
.. D 0 Thu Jun 26 22:29:37 2014
_aaa D 0 Sun Oct 20 10:16:27 2013
Links DR 0 Fri Jun 27 06:41:23 2014
AppData D 0 Wed Apr 23 16:15:30 2014
.bash_history H 50 Sun Mar 30 21:45:16 2014
.viminfo H 1745 Mon Apr 7 05:58:08 2014
Documents DR 0 Fri Jun 27 19:43:44 2014
Contacts DR 0 Tue May 27 05:31:16 2014
Desktop DR 0 Tue Jun 10 21:30:56 2014
Searches DR 0 Tue May 27 05:31:18 2014
Favorites DR 0 Tue May 27 05:40:58 2014
50364 blocks of size 4194304. 27720 blocks available
smb: \home\davor\> pwd
Current directory is \\vusir.local\files\home\davor\
smb: \home\davor\>
admind@ostraaros:~$ smbclient //vusir.local/files -U administrator -W VUSIR
Enter administrator's password:
Domain=[VUSIR] OS=[Unix] Server=[Samba 4.1.9]
smb: \> ls
. D 0 Sun Jun 29 13:32:51 2014
.. D 0 Fri Jun 27 05:51:19 2014
home D 0 Fri Jun 27 19:26:33 2014
familjen D 0 Fri Jun 27 19:26:07 2014
demoshare D 0 Sun Jun 29 13:32:51 2014
56212 blocks of size 1048576. 50229 blocks available
smb: \> cd demoshare\
smb: \demoshare\> ls
. D 0 Sun Jun 29 13:33:24 2014
.. D 0 Sun Jun 29 11:41:26 2014
Testa1 D 0 Sun Jun 29 13:33:22 2014
58665 blocks of size 16777216. 55533 blocks available
smb: \demoshare\> pwd
Current directory is \\vusir.local\files\demoshare\
smb: \demoshare\>
Regards
Davor
> I think vfs objects = dfs_samba4 belongs to vfs objects= btrfs !? server
> side copy !?
No, the two modules are completely unrelated.
Cheers, David
Here it gets tricky, I think. I see that you have compiled Samba. So have I.
My /usr/local resides as a directory on the root disk and /etc/fstab
has got the acl,user_xattr and barrier=1.
The directory files, that contains the links to DFS targets, is just
another directory in /data.
The question is; if /etc/fstab contains acl,user_xattr and barrier=1
for the root-partition/disk and /home is just another directory. Does
smb.conf need to include vfs objects = acl_xattr for /home/dfs? Or
does Samba use the settings in /etc/fstab?
In my setup the directories /data/home and /data/familjen have mounted
LVM-volumes formatted with ext4. For these two directories I have to
include vfs objects = acl_xattr (explicit setting) to be able to
manipulate ACLs. It seems that Sambas understanding (or how to put it)
of this does not "spill" over to mounted volumes.
Your [dfs] and my [files] are manually added to smb.conf. And as soon
you add a share definition, you have to add a 'explicit' setting (host
msdfs = Yes to the global section).
And it's about here I start to realize that it might not be such good
idea in the log run to create a SBS-equivalent server where both the
AD DC and file server runs simultanously.
Is this understandable?
Regards
Davor
>
> hh16:/home/dfsroot # ls -l
> total 0
> lrwxrwxrwx 1 root root 17 Jun 30 16:45 users -> msdfs:altea\users
>
> The fileserver, altea is up and we can navigate to:
> \\altea\users
>
> however:
> \\hh3.site\dfs
> and
> \\hh3.site\dfs\users
>
> Gives us the infamous '...you may not have permission to access...'
> popup.
>
> Is this the acl stuff Davor was mentioning?
> Thanks,
> Steve
>
>
This is my smb.conf at the AD DC:
# Global parameters
[global]
workgroup = VUSIR
realm = VUSIR.LOCAL
netbios name = OSTRAAROS
server role = active directory domain controller
server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc,
drepl, winbind, ntp_signd, kcc, dnsupdate
idmap_ldb:use rfc2307 = yes
disable spoolss = yes
log level = 1
host msdfs = yes
[files]
path = /data/files
comment = "Här finns allt!"
read only = No
msdfs root = yes
[home]
path = /data/home
comment = Homedirectories
read only = No
vfs objects = acl_xattr recycle
acl_xattr:ignore system acl = yes
recycle:keeptree = yes
recycle:versions = yes
recycle:maxsize = 1073741824
csc policy = programs
[familjen]
path = /data/familjen
comment = "Familjens samlade verk!"
read only = No
vfs objects = acl_xattr recycle
acl_xattr:ignore system acl = yes
recycle:keeptree = yes
recycle:versions = yes
recycle:maxsize = 1073741824
csc policy = disable
[netlogon]
path = /usr/local/samba/var/locks/sysvol/vusir.local/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
>
I think you´re wrong.
From member server vastraaros:
admind@vastraaros:~$ smbclient //hem.vusir.se/files -U davor
WARNING: The "idmap backend" option is deprecated
WARNING: The "idmap uid" option is deprecated
WARNING: The "idmap gid" option is deprecated
Enter davor's password:
Domain=[VUSIR] OS=[Unix] Server=[Samba 4.1.9]
smb: \> pwd
Current directory is \\hem.vusir.se\files\
smb: \> ls
. D 0 Mon Jun 30 20:18:22 2014
.. D 0 Fri Jun 27 05:51:19 2014
home D 0 Fri Jun 27 19:26:33 2014
familjen D 0 Fri Jun 27 19:26:07 2014
56212 blocks of size 1048576. 50192 blocks available
smb: \> cd home\davor
smb: \home\davor\> ls
. D 0 Wed Apr 23 07:57:52 2014
.. D 0 Thu Jun 26 22:29:37 2014
_aaa D 0 Sun Oct 20 10:16:27 2013
Links DR 0 Mon Jun 30 21:03:55 2014
AppData D 0 Wed Apr 23 16:15:30 2014
.bash_history H 50 Sun Mar 30 21:45:16 2014
.viminfo H 1745 Mon Apr 7 05:58:08 2014
Documents DR 0 Mon Jun 30 21:03:54 2014
Contacts DR 0 Mon Jun 30 21:03:54 2014
Desktop DR 0 Mon Jun 30 21:03:54 2014
Searches DR 0 Mon Jun 30 21:03:54 2014
Favorites DR 0 Mon Jun 30 21:03:54 2014
50364 blocks of size 4194304. 27720 blocks available
smb: \home\davor\> pwd
Current directory is \\hem.vusir.se\files\home\davor\
smb: \home\davor\> listconnect
0: server=hem.vusir.se, share=files
smb: \home\davor\>
Regards
Davor
On our config it treats the domain as the name of the server! Anyway,
thanks for your time. We can't spend any longer with this as we are
looking for a solution.
Thanks again,
Steve
EDV Daniel Müller
Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mue...@tropenklinik.de
Internet: www.tropenklinik.de
-----Ursprüngliche Nachricht-----
Von: samba-...@lists.samba.org [mailto:samba-...@lists.samba.org] Im Auftrag von steve
Gesendet: Dienstag, 1. Juli 2014 21:24
An: Davor Vusir
Cc: sa...@lists.samba.org
Betreff: Re: [Samba] domain-based DFS ?
Added uid, uidnumber and gidNumber to every account and group.
Resulted in access denied to \\vusir.local\dfs\share and home
directory.
Commented 'idmap_ldb:use rfc2307 = yes'. No change.
Removed uid, uidNumber and gidNumber from relevant accounts and access
groups. No change.
Removed uid, uidNumber and gidNumber from all accounts and access
Groups. No change.
Reactivated 'idmap_ldb:use rfc2307 = yes'. No change.
A couple of restarts of the Windows 7 client, AD DC restarts and a
server reboot. Back in business.
Regards
Davor
Below are the latest changes I made to smb.conf.
I also configured WINS-server on the client and enabled NetBIOS in the
TCP/IP Control Panel.
When I enabled NetBIOS in the TCP/IP Control Panel I got the access
error. I can't recall how I fixed that but it might be a good idea to
edit ACLs on the DFS share.
And while you're at it, why not add WINS...
I'm wondering how much I'm violating the AD DC...
Perhaps it was the 'allow insecure wide links = yes' that made it
work. Well... it's still working.
Regards
Davor
# Global parameters
[global]
host msdfs = yes
interfaces = 192.168.1.3/24
bind interfaces only = yes
wins support = yes
wins server = 192.168.1.3
allow insecure wide links = yes
[files]
path = /data/files
comment = "Här finns allt!"
read only = No
vfs objects = acl_xattr
msdfs root = yes
Greetings
Daniel
EDV Daniel Müller
Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen
Tel.: 07071/206-463, Fax: 07071/206-499
eMail: mue...@tropenklinik.de
Internet: www.tropenklinik.de
"Der Mensch ist die Medizin des Menschen"
-----Ursprüngliche Nachricht-----
Von: samba-...@lists.samba.org [mailto:samba-...@lists.samba.org] Im Auftrag von Davor Vusir
Gesendet: Sonntag, 6. Juli 2014 06:14
An: Henrik Langos
Cc: sa...@lists.samba.org
Betreff: Re: [Samba] domain-based DFS ?