Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've got a Windows DFS setup with a few namespaces, and I need a way of accessing them via CentOS.

Any ideas?

I've had a look at CIFS mounting, but it won't support the namespace (each separate server that hosts the content is fine, but that defeats the point of having the namespace in the first place).

share|improve this question

According to, the Linux CIFS implementation supports DFS. Make sure you mount with type cifs and not type smbfs. I've successfully configured a dfs namespace using Samba, and then mounted that with CIFS.

In samba.conf:

host msdfs = yes

  path = /home/lars/export/iso
  browseable = no
  guest ok = yes
  writable = no

  path = /tmp/dfs
  browseable = no
  guest ok = yes
  writeable = no
  msdfs root = yes

In /tmp/dfs:

ln -s msdfs:\\obliquity\iso iso

And then:

# mount.cifs //obliquity/dfs /mnt -o guest
# ls /mnt
ls: cannot read symbolic link /mnt/iso: Object is remote
foo  iso
# ls /mnt/iso
share|improve this answer
It can't see the DFS namespace (ie. \\\share), but it can find the actual server share (\\storageserver\share). – giggsey Dec 7 '10 at 17:23
hmm, okay, it should work according to that website. Maybe I have an old version? But then, it doesn't look like there has been any activity on that project for a while. – giggsey Dec 7 '10 at 17:31
This thread from last year seems relevant:… -- it suggests that the support for dfs is limited to referrals on the same server. I've updated my answer with a working example. Closer, but still doesn't solve your problem. – larsks Dec 7 '10 at 19:36

If it can't see the DFS namespace but can see the server share, make sure your CentOS box is resolving the address ( correctly.

share|improve this answer
smbclient -L – giggsey Dec 7 '10 at 17:36
Oops, smbclient connects fine. – giggsey Dec 7 '10 at 17:37

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.