On Windows it is possible to create DFS using windows share. However, I'm using Linux server and wondering - is it possible to create MSDFS using Samba on Linux?
What configuration changes needed to do it?
On Windows it is possible to create DFS using windows share. However, I'm using Linux server and wondering - is it possible to create MSDFS using Samba on Linux?
What configuration changes needed to do it?
Samba can do it through special symbolic link files. Samba has to be compiled with the --with-msdfs
option to make it work. Then you need to modify the smb.conf file to turn it on.
[global] host msdfs = yes #Add DFS as a share definition [dfs] path = /srv/smb/dfsroot msdfs root = yes
Once it does, you can make symlinks with this syntax to emulate linking to a remote host:
ln -s 'msdfs:server\volume` accounting
Lower-case is key. If you're replicating the data somehow (Samba, unlike Microsoft, doesn't bundle replication in with DFS) you can emulate that as well.
ln -s 'msdfs:server1\acct,msdfs:server2\acct' accounting
It's a good idea to ensure the links are owned by root. You don't want stray users redirecting other users to places nefarious.
yes, you have the global file system (GFS) red hat link