Hate to bring this up again, but I'm suddenly having the same problem as dannyboy79.
I'm trying to mount a few Windows XP shares, but when I perform the mount, the permissions on the mount point itself become "dr-xr-xr-x" no matter what I try.
I'm using file_mode=744,dir_mode=744, and everything *under* the mount point has the correct modes. Both the mount point and everything under it do have the correct ownership. Specifically, I'm performing the following:
Basically everything else is as dannyboy79 described. I've done this a bunch of times before, with the same shares, which have not changed recently to my knowledge. But this is on a new server running Jaunty--first time I've used it. I don't know if it's something about Jauny or what, but there's definitely something fishy going on here, and I don't think it's on the windows side. I can interact with the share normally with smbclient.
sudo mount -t cifs //NAVI/Code /mnt/smb/navi/code -o rw,iocharset=utf8,credentials=etc/.smbcredentials,file_mode=0744,dir_mode=744,uid=1000,gid=1000
Could this have something to do with AppArmor? I'm not very familiar with it...