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 have a Windows share (shared from a Windows Server 2003 box) that is mounted on our Ubuntu server using cifs. That mount is then shared out through Samba. The issue is that all of the folders in the share display as FILES. For example, imagine this folder structure:

>Share Level
>> FolderOne
>>> File
>> FolderTwo
>> FileOne

So, when I enter the root of the share from a Windows 7 machine, FolderOne, FolderTwo and FileOne all display as files. If I attempt to enter FolderOne by clicking on it's icon, it fails. If I go directly to the folder with a UNC path (\\server\share\FolderOne) I can enter the folder correctly.

Options on the CIFS mount: dirmode=0770, file_mode=0770, rw

Samba options on the share:

writeable = yes
printable = no
browseable = yes
force user = <primary file owner>
force group = <primary file group>
valid users = <needed access>

This is an Ubuntu 12.04.2 server running Samba 3.6.3.

share|improve this question
I don't think the problem is in the samba. Could you try without the " dirmode=0770, file_mode=0770, rw " ? – Str82DHeaD Apr 25 '13 at 13:54
Please see my answer below. – woodsbw Apr 25 '13 at 19:30

A combination of a question on ServerFault, and some help from kukk in the #samba IRC chatroom led to this information:

Directories shown as files, when sharing a mounted cifs drive

Short answer, yes, it doesn't work correctly, and the only solution is to hack a bit at the CIFS source code and recompile.

share|improve this answer

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.