Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have a NAS drive mounted on a server (fstab):

//192.168.0.181/Videos /mnt/NAS_01 cifs iocharset=utf8,uid=65534,gid=65534,guest,rw,file_mode=0777,dir_mode=0777 0 0

If I go into the directory and view it all looks good:

top level

$ ls -al:
drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Avatar - The Last Airbender drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:53 Babylon 5 drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Blue Planet, The - Seas of Life drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Boston Legal If I go into a subdirectory - say "Babylon 5": drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:53 . drwxr-xr-x 2 nobody nogroup 0 Aug 8 08:04 .. drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:33 Season 01 (1993) drwxr-xr-x 0 nobody nogroup 0 Jun 28 2011 Season 02 (1994) drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:33 Season 03 (1995) drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:34 Season 04 (1996) drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:35 Season 05 (1998)

Again, all is good. Now I have this drive shared via samba (smb.conf):

[global]
follow symlinks = yes
wide links = yes
unix extensions = no
...
[video]
path = /mnt/NAS_01
guest ok = yes
read only = no

Now I can mount or access the share //server/video with no problem and see all the directories (the show names) and can make new directories, upload files, read files, etc, however, in the subdirectories, they all appear to just be files.

$ ls -al:
drwxr-xr-x 0 nobody nogroup 0 Jun 28  2011 Avatar - The Last Airbender
drwxr-xr-x 0 nobody nogroup 0 Jun 26 16:47 Avatar - The Legend of Korra
drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:53 Babylon 5

All good so far - now I'll cd into the Babylon 5 directory

drwxr-xr-x 0 nobody nogroup 0 Jul 20 11:53 .
drwxr-xr-x 2 nobody nogroup 0 Nov 19 13:11 ..
-rwxr-xr-x 0 nobody nogroup 0 Jul 20 11:33 Season 01 (1993)
-rwxr-xr-x 0 nobody nogroup 0 Jun 28  2011 Season 02 (1994)
-rwxr-xr-x 0 nobody nogroup 0 Jul 20 11:33 Season 03 (1995)
-rwxr-xr-x 0 nobody nogroup 0 Jul 20 11:34 Season 04 (1996)
-rwxr-xr-x 0 nobody nogroup 0 Jul 20 11:35 Season 05 (1998)

Only the . and .. directories have the d flag, so to all programs those directories just look like files. I have tried so many different things and am just completely stumped on this one. Any ideas from anyone?

Oh - and if I create a directory in the "Babylon 5" folder, it will create it and it will have d bit set on the base device, but through the samba share it will still be missing it.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.