Page 1 of 1

cifs mount not working correctly

Posted: 2011/06/29 14:49:20
by agri56
Hoi,

I've been trying to mount a share for hours now without success. Last problem I saw is, that it's acctualy not mounting the exact dir I want but the root dir. fstab looks like this:

//someserver/data_01$/test /tmp/mnt cifs uid=test,auto,rw,file_mode=0770,dir_mode=0770,username=mnt_u,password=1234 0 0

user mnt_u has full privileges on //someserver/data_01$/test and the mounting itself is working fine but trying to read or access /tmp/mnt I get permission denied. When I look at /proc/fs/cifs/DebugData I see a wrong entry:

Display Internal CIFS Data Structures for Debugging
---------------------------------------------------
CIFS Version 1.34
Servers:
1) Name: 10.48.76.174 Domain: domain Mounts: 1 ServerOS: Windows 5.0
ServerNOS: Windows 2000 LAN Manager Capabilities: 0xd3fd
SMB session status: 1 TCP status: 1
Local Users To Server: 1 SecMode: 0x3 Req Active: 0
MIDs:

Shares:
1) \\someserver\data_01$ Uses: 1 Type: NTFS Characteristics: 0x20 Attributes: 0x4004f
PathComponentMax: 255 Status: 1 type: DISK


Shares is not pointing to the test directory but to the one on top. Any ideas why it is not mounting the test dir? Could it be the $ symbol in the path name?

Thx a lot

Chris

cifs mount not working correctly

Posted: 2011/06/29 16:50:31
by toracat
If I'm not mistaken, you can only mount //servername/sharename . Try:

smbclient -U mnt_u //someserver/data_01$

It will work. Then :

smbclient -U mnt_u //someserver/data_01$/test

may not work.

Re: cifs mount not working correctly

Posted: 2011/07/01 22:05:57
by pschaff
Welcome to the CentOS fora. Please see the recommended reading for new users linked in my signature.

If you want to be able to mount the "test" directory you need to export it as a separate share. You can't mount a subdirectory.