* Access denied in sub-folder
@ 2015-02-24 10:39 Halvor Lund
[not found] ` <loom.20150224T112226-189-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Halvor Lund @ 2015-02-24 10:39 UTC (permalink / raw)
To: linux-cifs-u79uwXL29TY76Z2rM5mHXA
Hello,
I'm having trouble accessing a folder of a share on a Windows Server 2008
R2. mount.cifs fails with "Permission denied", while smbclient succeeds,
when listing (ls) the folder contents.
In the path //server/share/folder I can access \\server\share using
mount.cifs, but not //server/share/folder.
By turning on debugging in /proc/fs/cifs/cifsFYI, I see the following status
codes in dmesg when trying to list //server/share/folder:
NT_STATUS_PATH_NOT_COVERED
NT_STATUS_MORE_PROCESSING_REQUIRED
NT_STATUS_NO_SUCH_DEVICE
NT_STATUS_ACCESS_DENIED
It seems that //server/share/folder is not a "true" path, but somehow
remapped to //anotherserver/anothershare/folder1/folder2, and that this has
something to do with the problem.
Kernel: 3.16.0-30-generic
mount.cifs version: 6.0
/proc/fs/cifs/DebugData:
2) Name: xxx.xxx.xxx.xxx Domain: <domain> Uses: 1 OS: Windows Server 2008
R2 Enterprise 7601 Service Pack 1
NOS: Windows Server 2008 R2 Enterprise 6.1 Capability: 0x1f3fc
SMB session status: 1 TCP status: 1
Local Users To Server: 1 SecMode: 0xf Req On Wire: 0
Shares:
1) \\server\share Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
PathComponentMax: 255 Status: 0x1 type: DISK
MIDs:
Best regards,
Halvor Lund
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Access denied in sub-folder
[not found] ` <loom.20150224T112226-189-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
@ 2015-02-24 21:05 ` Bob Balsover
0 siblings, 0 replies; 2+ messages in thread
From: Bob Balsover @ 2015-02-24 21:05 UTC (permalink / raw)
To: Halvor Lund; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA
Hello Halvor,
This looks similar to an issue that I had with a 2.6 kernel. It appears
that you might be using ntlmssp or ntlmsspi. I don't use smbmount so I
don't know anything about that program but I assume that it runs in user
space where most of the heavy lifting for mount.cifs happens in kernel
space.
You might be connecting to a DFS share which requires that the
authentication level is the same on all shared directories used by the DFS
share. If one machine is using NTLMSSP on the DFS namespace server but
the other machine that is also referenced by the DFS share is using NTLMv2
or NTLM you will get an authentication error because once mount.cifs is
called and you specify the protocol that is the only protocol that will be
used inside the kernel. smbmount on the other hand might try to connect
using other protocols because it itself is doing all of the connecting.
Just a wild guess.... What you should do is run a network trace on the
connection attempt and look for a DFS referral and if there is one this
might be the problem. Once you have the address of the referral, it will
be passed as text, try to connect using the same parameters that you were
using before and see if it connects.
Good luck.
> Hello,
>
> I'm having trouble accessing a folder of a share on a Windows Server 2008
> R2. mount.cifs fails with "Permission denied", while smbclient succeeds,
> when listing (ls) the folder contents.
>
> In the path //server/share/folder I can access \\server\share using
> mount.cifs, but not //server/share/folder.
> By turning on debugging in /proc/fs/cifs/cifsFYI, I see the following
> status
> codes in dmesg when trying to list //server/share/folder:
> NT_STATUS_PATH_NOT_COVERED
> NT_STATUS_MORE_PROCESSING_REQUIRED
> NT_STATUS_NO_SUCH_DEVICE
> NT_STATUS_ACCESS_DENIED
>
> It seems that //server/share/folder is not a "true" path, but somehow
> remapped to //anotherserver/anothershare/folder1/folder2, and that this
> has
> something to do with the problem.
>
> Kernel: 3.16.0-30-generic
> mount.cifs version: 6.0
>
> /proc/fs/cifs/DebugData:
> 2) Name: xxx.xxx.xxx.xxx Domain: <domain> Uses: 1 OS: Windows Server 2008
> R2 Enterprise 7601 Service Pack 1
> NOS: Windows Server 2008 R2 Enterprise 6.1 Capability: 0x1f3fc
> SMB session status: 1 TCP status: 1
> Local Users To Server: 1 SecMode: 0xf Req On Wire: 0
> Shares:
> 1) \\server\share Mounts: 1 Type: NTFS DevInfo: 0x20 Attributes: 0xc700ff
> PathComponentMax: 255 Status: 0x1 type: DISK
>
> MIDs:
>
> Best regards,
> Halvor Lund
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-02-24 21:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 10:39 Access denied in sub-folder Halvor Lund
[not found] ` <loom.20150224T112226-189-eS7Uydv5nfjZ+VzJOa5vwg@public.gmane.org>
2015-02-24 21:05 ` Bob Balsover
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox