gentoo, kernel 3.7.10
samba 3.6.12
SMB/CIFS server: Windows Server 2003 3790 Service Pack 2
I've encountered the situation when mount.cifs behaves differently from smbclient program.
The following command works fine. I can log in the server and navigate through the share's contents.
smbclient -U domainname/username //server.name/sharename And if I try to mount this very share folder with the following command,
mount -t cifs //server.name/sharename /mount/point -o user=domainname/username then the command itself works fine (return code is 0, no error message). But /mount/point looks empty.
What's the problem? Why mound.cifs and smbclient behave differently? Maybe smbclient uses some hidden settings?
BTW, I don't know whether it is relevant to the problem but anyway. If I run mount.cifs command several times, I don't get any folder already mounted kind of message. Though afterwards I can run umount the same number of times until I get error umount: /mount/point/: not mounted
mountor in/proc/mounts? What are the permissions for thedomainname/usernameon the server? By the way,-o username=...is preferred to-o user=...//server.name/sharename on /mount/point type cifs (rw)usernamein both cases and in the case I runsmbclientI can read the contents of the share (i.e. at least I have read rights) and in the other, under the same username, I can't.