<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-13155</id>
	<title>Nabble - Samba - linux-cifs-client</title>
	<updated>2009-11-19T14:12:42Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Samba---linux-cifs-client-f13155.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Samba---linux-cifs-client-f13155.html" />
	<subtitle type="html">The Linux CIFS VFS client</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26435027</id>
	<title>Re: [PATCH] add check for nameidata before accessing it</title>
	<published>2009-11-19T14:12:42Z</published>
	<updated>2009-11-19T14:12:42Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Thu, 19 Nov 2009 15:05:45 -0600
&lt;br&gt;Shirish Pargaonkar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435027&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shirishpargaonkar@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; This should prevent oops reported in kernel bugzilla 14641
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; From 240f75430dbe4965f79d903309488ebabd3d3625 Mon Sep 17 00:00:00 2001
&lt;br&gt;&amp;gt; From: Shirish Pargaonkar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435027&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shirishpargaonkar@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Date: Thu, 19 Nov 2009 14:38:59 -0600
&lt;br&gt;&amp;gt; Subject: [PATCH] add check for nameidata before accessing it
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435027&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;nbsp;fs/cifs/dir.c | &amp;nbsp; &amp;nbsp;4 ++--
&lt;br&gt;&amp;gt; &amp;nbsp;1 files changed, 2 insertions(+), 2 deletions(-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
&lt;br&gt;&amp;gt; index 627a60a..32771f5 100644
&lt;br&gt;&amp;gt; --- a/fs/cifs/dir.c
&lt;br&gt;&amp;gt; +++ b/fs/cifs/dir.c
&lt;br&gt;&amp;gt; @@ -643,7 +643,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct
&lt;br&gt;&amp;gt; dentry *direntry,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* O_EXCL: optimize away the lookup, but don't hash the dentry. Let
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* the VFS handle the create.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd-&amp;gt;flags &amp; LOOKUP_EXCL) {
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd &amp;&amp; (nd-&amp;gt;flags &amp; LOOKUP_EXCL)) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d_instantiate(direntry, NULL);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; @@ -675,7 +675,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct
&lt;br&gt;&amp;gt; dentry *direntry,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* reduction in network traffic in the other paths.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (pTcon-&amp;gt;unix_ext) {
&lt;br&gt;&amp;gt; - &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!(nd-&amp;gt;flags &amp; (LOOKUP_PARENT | LOOKUP_DIRECTORY)) &amp;&amp;
&lt;br&gt;&amp;gt; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd &amp;&amp; !(nd-&amp;gt;flags &amp; (LOOKUP_PARENT | LOOKUP_DIRECTORY)) &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(nd-&amp;gt;flags &amp; LOOKUP_OPEN) &amp;&amp; !pTcon-&amp;gt;broken_posix_open &amp;&amp;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(nd-&amp;gt;intent.open.flags &amp; O_CREAT)) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rc = cifs_posix_open(full_path, &amp;newInode, nd-&amp;gt;path.mnt,
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; 1.6.0.2
&lt;/div&gt;&lt;br&gt;Once the line-wrapping is fixed...
&lt;br&gt;&lt;br&gt;Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435027&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435027&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--add-check-for-nameidata-before-accessing-it-tp26434095p26435027.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26434095</id>
	<title>[PATCH] add check for nameidata before accessing it</title>
	<published>2009-11-19T13:05:45Z</published>
	<updated>2009-11-19T13:05:45Z</updated>
	<author>
		<name>Shirish Pargaonkar</name>
	</author>
	<content type="html">This should prevent oops reported in kernel bugzilla 14641
&lt;br&gt;&lt;br&gt;From 240f75430dbe4965f79d903309488ebabd3d3625 Mon Sep 17 00:00:00 2001
&lt;br&gt;From: Shirish Pargaonkar &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434095&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;shirishpargaonkar@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Date: Thu, 19 Nov 2009 14:38:59 -0600
&lt;br&gt;Subject: [PATCH] add check for nameidata before accessing it
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434095&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/dir.c | &amp;nbsp; &amp;nbsp;4 ++--
&lt;br&gt;&amp;nbsp;1 files changed, 2 insertions(+), 2 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/dir.c b/fs/cifs/dir.c
&lt;br&gt;index 627a60a..32771f5 100644
&lt;br&gt;--- a/fs/cifs/dir.c
&lt;br&gt;+++ b/fs/cifs/dir.c
&lt;br&gt;@@ -643,7 +643,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct
&lt;br&gt;dentry *direntry,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* O_EXCL: optimize away the lookup, but don't hash the dentry. Let
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* the VFS handle the create.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd-&amp;gt;flags &amp; LOOKUP_EXCL) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd &amp;&amp; (nd-&amp;gt;flags &amp; LOOKUP_EXCL)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; d_instantiate(direntry, NULL);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return 0;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;@@ -675,7 +675,7 @@ cifs_lookup(struct inode *parent_dir_inode, struct
&lt;br&gt;dentry *direntry,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;* reduction in network traffic in the other paths.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (pTcon-&amp;gt;unix_ext) {
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (!(nd-&amp;gt;flags &amp; (LOOKUP_PARENT | LOOKUP_DIRECTORY)) &amp;&amp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (nd &amp;&amp; !(nd-&amp;gt;flags &amp; (LOOKUP_PARENT | LOOKUP_DIRECTORY)) &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(nd-&amp;gt;flags &amp; LOOKUP_OPEN) &amp;&amp; !pTcon-&amp;gt;broken_posix_open &amp;&amp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(nd-&amp;gt;intent.open.flags &amp; O_CREAT)) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rc = cifs_posix_open(full_path, &amp;newInode, nd-&amp;gt;path.mnt,
&lt;br&gt;--
&lt;br&gt;1.6.0.2
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26434095&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;cifs.nd.2.patch&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/26434095/0/cifs.nd.2.patch&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--add-check-for-nameidata-before-accessing-it-tp26434095p26434095.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26393164</id>
	<title>Re: [PATCH 6/7] cifs: Don't use PF_MEMALLOC</title>
	<published>2009-11-17T08:40:49Z</published>
	<updated>2009-11-17T08:40:49Z</updated>
	<author>
		<name>Steve French-2</name>
	</author>
	<content type="html">It is hard to follow exactly what this flag does in /mm (other than try harder on memory allocations) - I haven&amp;#39;t found much about this flag (e.g. &lt;a href=&quot;http://lwn.net/Articles/246928/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://lwn.net/Articles/246928/&lt;/a&gt;) but it does look like most of the fs no longer set this (except xfs) e.g. ext3_ordered_writepage.  When running out of memory in the cifs_demultiplex_thread it will retry 3 seconds later, but if memory allocations ever fail in this path we could potentially be holding up (an already issued write in) writepages for that period by not having memory to get the response to see if the write succeeded.&lt;br&gt;
&lt;br&gt;We pass in few flags for these memory allocation requests: GFP_NOFS (on the mempool_alloc) and SLAB_HWCACHE_ALIGN (on the kmem_cache_create of the pool) should we be passing in other flags on the allocations?&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;
On Tue, Nov 17, 2009 at 6:47 AM, Jeff Layton &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Tue, 17 Nov 2009 16:22:32 +0900 (JST)&lt;br&gt;
KOSAKI Motohiro &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kosaki.motohiro@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Non MM subsystem must not use PF_MEMALLOC. Memory reclaim need few&lt;br&gt;
&amp;gt; memory, anyone must not prevent it. Otherwise the system cause&lt;br&gt;
&amp;gt; mysterious hang-up and/or OOM Killer invokation.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Cc: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;&lt;br&gt;
&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;samba-technical@...&lt;/a&gt;&lt;br&gt;
&amp;gt; Signed-off-by: KOSAKI Motohiro &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kosaki.motohiro@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt; ---&lt;br&gt;
&amp;gt;  fs/cifs/connect.c |    1 -&lt;br&gt;
&amp;gt;  1 files changed, 0 insertions(+), 1 deletions(-)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c&lt;br&gt;
&amp;gt; index 63ea83f..f9b1553 100644&lt;br&gt;
&amp;gt; --- a/fs/cifs/connect.c&lt;br&gt;
&amp;gt; +++ b/fs/cifs/connect.c&lt;br&gt;
&amp;gt; @@ -337,7 +337,6 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)&lt;br&gt;
&amp;gt;       bool isMultiRsp;&lt;br&gt;
&amp;gt;       int reconnect;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -     current-&amp;gt;flags |= PF_MEMALLOC;&lt;br&gt;
&amp;gt;       cFYI(1, (&amp;quot;Demultiplex PID: %d&amp;quot;, task_pid_nr(current)));&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;       length = atomic_inc_return(&amp;amp;tcpSesAllocCount);&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;This patch appears to be safe for CIFS. I believe that the demultiplex&lt;br&gt;
thread only does mempool allocations currently. The only other case&lt;br&gt;
where it did an allocation was recently changed with the conversion of&lt;br&gt;
the oplock break code to use slow_work.&lt;br&gt;
&lt;br&gt;
Barring anything I&amp;#39;ve missed...&lt;br&gt;
&lt;br&gt;
Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Steve&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26393164&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCH-6-7--cifs%3A-Don%27t-use-PF_MEMALLOC-tp26389335p26393164.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26389335</id>
	<title>Re: [PATCH 6/7] cifs: Don't use PF_MEMALLOC</title>
	<published>2009-11-17T04:47:39Z</published>
	<updated>2009-11-17T04:47:39Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Tue, 17 Nov 2009 16:22:32 +0900 (JST)
&lt;br&gt;KOSAKI Motohiro &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kosaki.motohiro@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Non MM subsystem must not use PF_MEMALLOC. Memory reclaim need few
&lt;br&gt;&amp;gt; memory, anyone must not prevent it. Otherwise the system cause
&lt;br&gt;&amp;gt; mysterious hang-up and/or OOM Killer invokation.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Cc: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Cc: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;samba-technical@...&lt;/a&gt;
&lt;br&gt;&amp;gt; Signed-off-by: KOSAKI Motohiro &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kosaki.motohiro@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;nbsp;fs/cifs/connect.c | &amp;nbsp; &amp;nbsp;1 -
&lt;br&gt;&amp;gt; &amp;nbsp;1 files changed, 0 insertions(+), 1 deletions(-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
&lt;br&gt;&amp;gt; index 63ea83f..f9b1553 100644
&lt;br&gt;&amp;gt; --- a/fs/cifs/connect.c
&lt;br&gt;&amp;gt; +++ b/fs/cifs/connect.c
&lt;br&gt;&amp;gt; @@ -337,7 +337,6 @@ cifs_demultiplex_thread(struct TCP_Server_Info *server)
&lt;br&gt;&amp;gt; &amp;nbsp;	bool isMultiRsp;
&lt;br&gt;&amp;gt; &amp;nbsp;	int reconnect;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; -	current-&amp;gt;flags |= PF_MEMALLOC;
&lt;br&gt;&amp;gt; &amp;nbsp;	cFYI(1, (&amp;quot;Demultiplex PID: %d&amp;quot;, task_pid_nr(current)));
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt; &amp;nbsp;	length = atomic_inc_return(&amp;tcpSesAllocCount);
&lt;/div&gt;&lt;br&gt;This patch appears to be safe for CIFS. I believe that the demultiplex
&lt;br&gt;thread only does mempool allocations currently. The only other case
&lt;br&gt;where it did an allocation was recently changed with the conversion of
&lt;br&gt;the oplock break code to use slow_work.
&lt;br&gt;&lt;br&gt;Barring anything I've missed...
&lt;br&gt;&lt;br&gt;Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26389335&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A--PATCH-6-7--cifs%3A-Don%27t-use-PF_MEMALLOC-tp26389335p26389335.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26373838</id>
	<title>Re: [PATCH] cifs: clear server inode number flag while autodisabling</title>
	<published>2009-11-16T07:25:01Z</published>
	<updated>2009-11-16T07:25:01Z</updated>
	<author>
		<name>Steve French-2</name>
	</author>
	<content type="html">Merged into cifs-2.6.git&lt;br&gt;&lt;br&gt;Will request upstream later today.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 16, 2009 at 7:42 AM, Suresh Jayaraman &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On 11/16/2009 07:10 PM, Jeff Layton wrote:&lt;br&gt;
&amp;gt; On Mon, 16 Nov 2009 07:39:43 -0500&lt;br&gt;
&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; On Mon, 16 Nov 2009 12:03:16 +0530&lt;br&gt;
&amp;gt;&amp;gt; Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt; wrote:&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Fix the commit ec06aedd44 that intended to turn off querying for server inode&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; numbers when server doesn&amp;#39;t consistently support inode numbers. Presumably&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; the commit didn&amp;#39;t actually clear the CIFS_MOUNT_SERVER_INUM flag, perhaps a&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; typo.&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Signed-off-by: Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; Cc: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; ---&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;  fs/cifs/misc.c |    2 +-&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;  1 files changed, 1 insertions(+), 1 deletions(-)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; index 1e25efc..d27d4ec 100644&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; --- a/fs/cifs/misc.c&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; +++ b/fs/cifs/misc.c&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; @@ -720,7 +720,7 @@ void&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;  cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;  {&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;     if (cifs_sb-&amp;gt;mnt_cifs_flags &amp;amp; CIFS_MOUNT_SERVER_INUM) {&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; -           cifs_sb-&amp;gt;mnt_cifs_flags &amp;amp;= CIFS_MOUNT_SERVER_INUM;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt; +           cifs_sb-&amp;gt;mnt_cifs_flags &amp;amp;= ~CIFS_MOUNT_SERVER_INUM;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;             cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;                        &amp;quot;%s. This server doesn&amp;#39;t seem to support them &amp;quot;&lt;br&gt;
&amp;gt;&amp;gt;&amp;gt;                        &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Doh! Boneheaded error...&lt;br&gt;
&amp;gt;&amp;gt;&lt;br&gt;
&amp;gt;&amp;gt; Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; This patch probably needs to go to 2.6.32 and -stable.&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;Ah, yes, please include -Cc stable.&lt;br&gt;
&lt;br&gt;
Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;Suresh Jayaraman&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;-- &lt;br&gt;Thanks,&lt;br&gt;&lt;br&gt;Steve&lt;br&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26373838&amp;i=7&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clear-server-inode-number-flag-while-autodisabling-tp26367549p26373838.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26372105</id>
	<title>Re: [PATCH] cifs: clear server inode number flag while autodisabling</title>
	<published>2009-11-16T05:42:41Z</published>
	<updated>2009-11-16T05:42:41Z</updated>
	<author>
		<name>Suresh Jayaraman-2</name>
	</author>
	<content type="html">On 11/16/2009 07:10 PM, Jeff Layton wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 16 Nov 2009 07:39:43 -0500
&lt;br&gt;&amp;gt; Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; On Mon, 16 Nov 2009 12:03:16 +0530
&lt;br&gt;&amp;gt;&amp;gt; Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Fix the commit ec06aedd44 that intended to turn off querying for server inode
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; numbers when server doesn't consistently support inode numbers. Presumably
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; the commit didn't actually clear the CIFS_MOUNT_SERVER_INUM flag, perhaps a
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; typo.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Signed-off-by: Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Cc: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ---
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;fs/cifs/misc.c | &amp;nbsp; &amp;nbsp;2 +-
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;1 files changed, 1 insertions(+), 1 deletions(-)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; index 1e25efc..d27d4ec 100644
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; --- a/fs/cifs/misc.c
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; +++ b/fs/cifs/misc.c
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; @@ -720,7 +720,7 @@ void
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;{
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; +		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Doh! Boneheaded error...
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This patch probably needs to go to 2.6.32 and -stable.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Ah, yes, please include -Cc stable.
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Suresh Jayaraman
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372105&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clear-server-inode-number-flag-while-autodisabling-tp26367549p26372105.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26372060</id>
	<title>Re: [PATCH] cifs: clear server inode number flag while autodisabling</title>
	<published>2009-11-16T05:40:28Z</published>
	<updated>2009-11-16T05:40:28Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Mon, 16 Nov 2009 07:39:43 -0500
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, 16 Nov 2009 12:03:16 +0530
&lt;br&gt;&amp;gt; Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Fix the commit ec06aedd44 that intended to turn off querying for server inode
&lt;br&gt;&amp;gt; &amp;gt; numbers when server doesn't consistently support inode numbers. Presumably
&lt;br&gt;&amp;gt; &amp;gt; the commit didn't actually clear the CIFS_MOUNT_SERVER_INUM flag, perhaps a
&lt;br&gt;&amp;gt; &amp;gt; typo.
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Signed-off-by: Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Cc: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ---
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;fs/cifs/misc.c | &amp;nbsp; &amp;nbsp;2 +-
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;1 files changed, 1 insertions(+), 1 deletions(-)
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;&amp;gt; &amp;gt; index 1e25efc..d27d4ec 100644
&lt;br&gt;&amp;gt; &amp;gt; --- a/fs/cifs/misc.c
&lt;br&gt;&amp;gt; &amp;gt; +++ b/fs/cifs/misc.c
&lt;br&gt;&amp;gt; &amp;gt; @@ -720,7 +720,7 @@ void
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;&amp;gt; &amp;gt; -		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt; &amp;gt; +		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Doh! Boneheaded error...
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;This patch probably needs to go to 2.6.32 and -stable.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26372060&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clear-server-inode-number-flag-while-autodisabling-tp26367549p26372060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26371201</id>
	<title>Re: [PATCH] cifs: clear server inode number flag while autodisabling</title>
	<published>2009-11-16T04:39:43Z</published>
	<updated>2009-11-16T04:39:43Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Mon, 16 Nov 2009 12:03:16 +0530
&lt;br&gt;Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26371201&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Fix the commit ec06aedd44 that intended to turn off querying for server inode
&lt;br&gt;&amp;gt; numbers when server doesn't consistently support inode numbers. Presumably
&lt;br&gt;&amp;gt; the commit didn't actually clear the CIFS_MOUNT_SERVER_INUM flag, perhaps a
&lt;br&gt;&amp;gt; typo.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Signed-off-by: Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26371201&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; Cc: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26371201&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; ---
&lt;br&gt;&amp;gt; &amp;nbsp;fs/cifs/misc.c | &amp;nbsp; &amp;nbsp;2 +-
&lt;br&gt;&amp;gt; &amp;nbsp;1 files changed, 1 insertions(+), 1 deletions(-)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;&amp;gt; index 1e25efc..d27d4ec 100644
&lt;br&gt;&amp;gt; --- a/fs/cifs/misc.c
&lt;br&gt;&amp;gt; +++ b/fs/cifs/misc.c
&lt;br&gt;&amp;gt; @@ -720,7 +720,7 @@ void
&lt;br&gt;&amp;gt; &amp;nbsp;cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;&amp;gt; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp;	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;&amp;gt; -		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt; +		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;gt; &amp;nbsp;		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;&amp;gt; &amp;nbsp;			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;/div&gt;&lt;br&gt;Doh! Boneheaded error...
&lt;br&gt;&lt;br&gt;Acked-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26371201&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26371201&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clear-server-inode-number-flag-while-autodisabling-tp26367549p26371201.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26367549</id>
	<title>[PATCH] cifs: clear server inode number flag while autodisabling</title>
	<published>2009-11-15T22:33:16Z</published>
	<updated>2009-11-15T22:33:16Z</updated>
	<author>
		<name>Suresh Jayaraman-2</name>
	</author>
	<content type="html">Fix the commit ec06aedd44 that intended to turn off querying for server inode
&lt;br&gt;numbers when server doesn't consistently support inode numbers. Presumably
&lt;br&gt;the commit didn't actually clear the CIFS_MOUNT_SERVER_INUM flag, perhaps a
&lt;br&gt;typo.
&lt;br&gt;&lt;br&gt;Signed-off-by: Suresh Jayaraman &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367549&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sjayaraman@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Cc: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367549&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/misc.c | &amp;nbsp; &amp;nbsp;2 +-
&lt;br&gt;&amp;nbsp;1 files changed, 1 insertions(+), 1 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;index 1e25efc..d27d4ec 100644
&lt;br&gt;--- a/fs/cifs/misc.c
&lt;br&gt;+++ b/fs/cifs/misc.c
&lt;br&gt;@@ -720,7 +720,7 @@ void
&lt;br&gt;&amp;nbsp;cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;-		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;&amp;nbsp;		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;&amp;nbsp;			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26367549&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clear-server-inode-number-flag-while-autodisabling-tp26367549p26367549.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26323651</id>
	<title>Re: File Creation Time</title>
	<published>2009-11-12T10:10:59Z</published>
	<updated>2009-11-12T10:10:59Z</updated>
	<author>
		<name>Sam Flory</name>
	</author>
	<content type="html">On Thu, 2009-11-12 at 10:29 -0500, Jeff Layton wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Wed, 11 Nov 2009 17:12:08 -0800
&lt;br&gt;&amp;gt; Sam Flory &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323651&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sam.flory@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; Is there a way to get creation time for a file on a windows cifs server?
&lt;br&gt;&amp;gt; &amp;gt; If yes is there a command or system call to get it?
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Not currently, no. CreationTime in the returned attributes are pretty
&lt;br&gt;&amp;gt; much ignored, primarily because we don't have a place to put in in the
&lt;br&gt;&amp;gt; POSIX stat struct.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; You could maybe consider doing something like faking up an xattr with
&lt;br&gt;&amp;gt; that info, but the code for that doesn't exist today.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Thanks Jeff that's very useful info. &amp;nbsp;I'll look into that, but I'm not
&lt;br&gt;sure it's worth supporting yet another hack of a patch in our kernel.
&lt;br&gt;&lt;br&gt;Ps- Thanks everyone. We've really been pleased with the stability, and
&lt;br&gt;compatibility of the cifs driver.
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26323651&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-Creation-Time-tp26311963p26323651.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26320696</id>
	<title>Re: File Creation Time</title>
	<published>2009-11-12T07:29:19Z</published>
	<updated>2009-11-12T07:29:19Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 11 Nov 2009 17:12:08 -0800
&lt;br&gt;Sam Flory &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320696&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sam.flory@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; Is there a way to get creation time for a file on a windows cifs server?
&lt;br&gt;&amp;gt; If yes is there a command or system call to get it?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Not currently, no. CreationTime in the returned attributes are pretty
&lt;br&gt;much ignored, primarily because we don't have a place to put in in the
&lt;br&gt;POSIX stat struct.
&lt;br&gt;&lt;br&gt;You could maybe consider doing something like faking up an xattr with
&lt;br&gt;that info, but the code for that doesn't exist today.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320696&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26320696&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-Creation-Time-tp26311963p26320696.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26311963</id>
	<title>File Creation Time</title>
	<published>2009-11-11T17:12:08Z</published>
	<updated>2009-11-11T17:12:08Z</updated>
	<author>
		<name>Sam Flory</name>
	</author>
	<content type="html">Is there a way to get creation time for a file on a windows cifs server?
&lt;br&gt;If yes is there a command or system call to get it?
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26311963&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/File-Creation-Time-tp26311963p26311963.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26267250</id>
	<title>Re: suddenly doesn't work with the username and password in credentials=... in the mount line</title>
	<published>2009-11-09T06:22:53Z</published>
	<updated>2009-11-09T06:22:53Z</updated>
	<author>
		<name>Kin Yip</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;Thanks for the reply.
&lt;br&gt;&lt;br&gt;It does look like that when I take away the carriage return in line of 
&lt;br&gt;password in my &amp;quot;credentials&amp;quot; file,
&lt;br&gt;mounting works ! &amp;nbsp;That's my &amp;quot;work-around&amp;quot; for the time being.
&lt;br&gt;&lt;br&gt;Kin
&lt;br&gt;&lt;br&gt;Jeff Layton wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Sun, 08 Nov 2009 13:18:50 -0500
&lt;br&gt;&amp;gt; Kin Yip &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26267250&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kinyip@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&amp;gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I'm using Scientific Linux 5.3 (~ RedHat Enterprise 5.3).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; After a reboot today, I probably have switched to a new kernel, &amp;quot;uname 
&lt;br&gt;&amp;gt;&amp;gt; -a&amp;quot; gives :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Linux yipkin.c-ad.bnl.gov 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:22:26 
&lt;br&gt;&amp;gt;&amp;gt; EDT 2009 i686 i686 i386 GNU/Linux
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Somehow, the auto-mounting with cifs for the following line in 
&lt;br&gt;&amp;gt;&amp;gt; /etc/fstab doesn't work but it used to work :
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; //c-adweb/data &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/c-adweb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cifs &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; domain=BNL,credentials=/root/.credentials,gid=kinyip,uid=kinyip 0 0
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I see error in /var/log/message:
&lt;br&gt;&amp;gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: Status code returned 0xc000006d 
&lt;br&gt;&amp;gt;&amp;gt; NT_STATUS_LOGON_FAILURE
&lt;br&gt;&amp;gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: Send error in SessSetup = -13
&lt;br&gt;&amp;gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: cifs_mount failed w/return 
&lt;br&gt;&amp;gt;&amp;gt; code = -13
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Using the command :
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp;mount -t cifs -o 
&lt;br&gt;&amp;gt;&amp;gt; domain=BNL,credentials=/root/.credentials,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; //c-adweb/data /mnt/c-adweb
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; would get me :
&lt;br&gt;&amp;gt;&amp;gt; mount error 13 = Permission denied
&lt;br&gt;&amp;gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; And I can see the same errors in /var/log/message (or dmesg).
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; If I do &amp;quot;mount -t cifs -o domain=BNL,user=kinyip,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;&amp;gt;&amp;gt; //c-adweb/data /mnt/c-adweb&amp;quot;, it would ask me for password and
&lt;br&gt;&amp;gt;&amp;gt; then it'd mount successfully !!
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; In my file /root/.credentials &amp;nbsp;(&amp;quot;ls&amp;quot; would have : -rw------- 1 root root 
&lt;br&gt;&amp;gt;&amp;gt; 39 Nov &amp;nbsp;8 13:02 /root/.credentials ), it's like
&lt;br&gt;&amp;gt;&amp;gt; username=kinyip
&lt;br&gt;&amp;gt;&amp;gt; password=$.....
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; My first character of my password is $ and I'm wondering whether this is 
&lt;br&gt;&amp;gt;&amp;gt; creating trouble ???? &amp;nbsp;I've tried &amp;quot;\$....&amp;quot; but it doesn't help.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; Any idea ???
&lt;br&gt;&amp;gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Known regression. mount.cifs isn't stripping the trailing &amp;quot;\n&amp;quot; off of
&lt;br&gt;&amp;gt; the password in cred files. We'll be shipping a fixed package for RHEL
&lt;br&gt;&amp;gt; soon.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;/div&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26267250&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suddenly-doesn%27t-work-with-the-username-and-password-in-credentials%3D...-in-the-mount-line-tp26256427p26267250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26265309</id>
	<title>Re: suddenly doesn't work with the username and password in credentials=... in the mount line</title>
	<published>2009-11-09T04:04:21Z</published>
	<updated>2009-11-09T04:04:21Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Sun, 08 Nov 2009 13:18:50 -0500
&lt;br&gt;Kin Yip &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265309&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;kinyip@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm using Scientific Linux 5.3 (~ RedHat Enterprise 5.3).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; After a reboot today, I probably have switched to a new kernel, &amp;quot;uname 
&lt;br&gt;&amp;gt; -a&amp;quot; gives :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Linux yipkin.c-ad.bnl.gov 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:22:26 
&lt;br&gt;&amp;gt; EDT 2009 i686 i686 i386 GNU/Linux
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Somehow, the auto-mounting with cifs for the following line in 
&lt;br&gt;&amp;gt; /etc/fstab doesn't work but it used to work :
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; //c-adweb/data &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/c-adweb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cifs &amp;nbsp; &amp;nbsp;
&lt;br&gt;&amp;gt; domain=BNL,credentials=/root/.credentials,gid=kinyip,uid=kinyip 0 0
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I see error in /var/log/message:
&lt;br&gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: Status code returned 0xc000006d 
&lt;br&gt;&amp;gt; NT_STATUS_LOGON_FAILURE
&lt;br&gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: Send error in SessSetup = -13
&lt;br&gt;&amp;gt; Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: cifs_mount failed w/return 
&lt;br&gt;&amp;gt; code = -13
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Using the command :
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;mount -t cifs -o 
&lt;br&gt;&amp;gt; domain=BNL,credentials=/root/.credentials,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;&amp;gt; //c-adweb/data /mnt/c-adweb
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; would get me :
&lt;br&gt;&amp;gt; mount error 13 = Permission denied
&lt;br&gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And I can see the same errors in /var/log/message (or dmesg).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If I do &amp;quot;mount -t cifs -o domain=BNL,user=kinyip,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;&amp;gt; //c-adweb/data /mnt/c-adweb&amp;quot;, it would ask me for password and
&lt;br&gt;&amp;gt; then it'd mount successfully !!
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In my file /root/.credentials &amp;nbsp;(&amp;quot;ls&amp;quot; would have : -rw------- 1 root root 
&lt;br&gt;&amp;gt; 39 Nov &amp;nbsp;8 13:02 /root/.credentials ), it's like
&lt;br&gt;&amp;gt; username=kinyip
&lt;br&gt;&amp;gt; password=$.....
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; My first character of my password is $ and I'm wondering whether this is 
&lt;br&gt;&amp;gt; creating trouble ???? &amp;nbsp;I've tried &amp;quot;\$....&amp;quot; but it doesn't help.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any idea ???
&lt;/div&gt;&lt;br&gt;Known regression. mount.cifs isn't stripping the trailing &amp;quot;\n&amp;quot; off of
&lt;br&gt;the password in cred files. We'll be shipping a fixed package for RHEL
&lt;br&gt;soon.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265309&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26265309&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suddenly-doesn%27t-work-with-the-username-and-password-in-credentials%3D...-in-the-mount-line-tp26256427p26265309.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259663</id>
	<title>[PATCH] cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible</title>
	<published>2009-11-08T16:39:04Z</published>
	<updated>2009-11-08T16:39:04Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">Because it's lighter weight, CIFS tries to use CIFSGetSrvInodeNumber to
&lt;br&gt;verify the accessibility of the root inode and then falls back to doing a
&lt;br&gt;full QPathInfo if that fails with -EOPNOTSUPP. I have at least a report
&lt;br&gt;of a server that returns NT_STATUS_INTERNAL_ERROR rather than something
&lt;br&gt;that translates to EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;Rather than trying to be clever with that call, just have
&lt;br&gt;is_path_accessible do a normal QPathInfo. That call is widely
&lt;br&gt;supported and it shouldn't increase the overhead significantly.
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/connect.c | &amp;nbsp; &amp;nbsp;8 --------
&lt;br&gt;&amp;nbsp;1 files changed, 0 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
&lt;br&gt;index b090980..63ea83f 100644
&lt;br&gt;--- a/fs/cifs/connect.c
&lt;br&gt;+++ b/fs/cifs/connect.c
&lt;br&gt;@@ -2220,16 +2220,8 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; struct cifs_sb_info *cifs_sb, const char *full_path)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int rc;
&lt;br&gt;-	__u64 inode_num;
&lt;br&gt;&amp;nbsp;	FILE_ALL_INFO *pfile_info;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	rc = CIFSGetSrvInodeNumber(xid, tcon, full_path, &amp;inode_num,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;local_nls,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;-						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-	if (rc != -EOPNOTSUPP)
&lt;br&gt;-		return rc;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;	pfile_info = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
&lt;br&gt;&amp;nbsp;	if (pfile_info == NULL)
&lt;br&gt;&amp;nbsp;		return -ENOMEM;
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259663&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clean-up-handling-when-server-doesn%27t-consistently-support-inode-numbers-tp26259664p26259663.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26259664</id>
	<title>[PATCH] cifs: clean up handling when server doesn't consistently support inode numbers</title>
	<published>2009-11-08T16:39:03Z</published>
	<updated>2009-11-08T16:39:03Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">It's possible that a server will return a valid FileID when we query the
&lt;br&gt;FILE_INTERNAL_INFO for the root inode, but then zeroed out inode numbers
&lt;br&gt;when we do a FindFile with an infolevel of
&lt;br&gt;SMB_FIND_FILE_ID_FULL_DIR_INFO.
&lt;br&gt;&lt;br&gt;In this situation turn off querying for server inode numbers, generate a
&lt;br&gt;warning for the user and just generate an inode number using iunique.
&lt;br&gt;Once we generate any inode number with iunique we can no longer use any
&lt;br&gt;server inode numbers or we risk collisions, so ensure that we don't do
&lt;br&gt;that in cifs_get_inode_info either.
&lt;br&gt;&lt;br&gt;Cc: Stable &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;stable@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Reported-by: Timothy Normand Miller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;theosib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Steve French &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sfrench@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/cifsproto.h | &amp;nbsp; &amp;nbsp;1 +
&lt;br&gt;&amp;nbsp;fs/cifs/inode.c &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 ++-----
&lt;br&gt;&amp;nbsp;fs/cifs/misc.c &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp; 14 ++++++++++++++
&lt;br&gt;&amp;nbsp;fs/cifs/readdir.c &amp;nbsp; | &amp;nbsp; &amp;nbsp;7 ++++---
&lt;br&gt;&amp;nbsp;4 files changed, 21 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/cifsproto.h b/fs/cifs/cifsproto.h
&lt;br&gt;index 6928c24..5646727 100644
&lt;br&gt;--- a/fs/cifs/cifsproto.h
&lt;br&gt;+++ b/fs/cifs/cifsproto.h
&lt;br&gt;@@ -388,4 +388,5 @@ extern int CIFSSMBSetPosixACL(const int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		const struct nls_table *nls_codepage, int remap_special_chars);
&lt;br&gt;&amp;nbsp;extern int CIFSGetExtAttr(const int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;			const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
&lt;br&gt;+extern void cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb);
&lt;br&gt;&amp;nbsp;#endif			/* _CIFSPROTO_H */
&lt;br&gt;diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
&lt;br&gt;index 5e24925..cababd8 100644
&lt;br&gt;--- a/fs/cifs/inode.c
&lt;br&gt;+++ b/fs/cifs/inode.c
&lt;br&gt;@@ -512,13 +512,10 @@ int cifs_get_inode_info(struct inode **pinode,
&lt;br&gt;&amp;nbsp;					cifs_sb-&amp;gt;local_nls,
&lt;br&gt;&amp;nbsp;					cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;&amp;nbsp;						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-			if (rc1) {
&lt;br&gt;+			if (rc1 || !fattr.cf_uniqueid) {
&lt;br&gt;&amp;nbsp;				cFYI(1, (&amp;quot;GetSrvInodeNum rc %d&amp;quot;, rc1));
&lt;br&gt;&amp;nbsp;				fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;-				/* disable serverino if call not supported */
&lt;br&gt;-				if (rc1 == -EINVAL)
&lt;br&gt;-					cifs_sb-&amp;gt;mnt_cifs_flags &amp;=
&lt;br&gt;-							~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+				cifs_autodisable_serverino(cifs_sb);
&lt;br&gt;&amp;nbsp;			}
&lt;br&gt;&amp;nbsp;		} else {
&lt;br&gt;&amp;nbsp;			fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c
&lt;br&gt;index 0241b25..1e25efc 100644
&lt;br&gt;--- a/fs/cifs/misc.c
&lt;br&gt;+++ b/fs/cifs/misc.c
&lt;br&gt;@@ -715,3 +715,17 @@ cifsConvertToUCS(__le16 *target, const char *source, int maxlen,
&lt;br&gt;&amp;nbsp;ctoUCS_out:
&lt;br&gt;&amp;nbsp;	return i;
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+void
&lt;br&gt;+cifs_autodisable_serverino(struct cifs_sb_info *cifs_sb)
&lt;br&gt;+{
&lt;br&gt;+	if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM) {
&lt;br&gt;+		cifs_sb-&amp;gt;mnt_cifs_flags &amp;= CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+		cERROR(1, (&amp;quot;Autodisabling the use of server inode numbers on &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;%s. This server doesn't seem to support them &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;properly. Hardlinks will not be recognized on this &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;mount. Consider mounting with the \&amp;quot;noserverino\&amp;quot; &amp;quot;
&lt;br&gt;+			 &amp;nbsp; &amp;quot;option to silence this message.&amp;quot;,
&lt;br&gt;+			 &amp;nbsp; cifs_sb-&amp;gt;tcon-&amp;gt;treeName));
&lt;br&gt;+	}
&lt;br&gt;+}
&lt;br&gt;diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
&lt;br&gt;index 1f098ca..f84062f 100644
&lt;br&gt;--- a/fs/cifs/readdir.c
&lt;br&gt;+++ b/fs/cifs/readdir.c
&lt;br&gt;@@ -727,11 +727,12 @@ static int cifs_filldir(char *pfindEntry, struct file *file, filldir_t filldir,
&lt;br&gt;&amp;nbsp;		cifs_dir_info_to_fattr(&amp;fattr, (FILE_DIRECTORY_INFO *)
&lt;br&gt;&amp;nbsp;					pfindEntry, cifs_sb);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	/* FIXME: make _to_fattr functions fill this out */
&lt;br&gt;-	if (pCifsF-&amp;gt;srch_inf.info_level == SMB_FIND_FILE_ID_FULL_DIR_INFO)
&lt;br&gt;+	if (inum &amp;&amp; (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM)) {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = inum;
&lt;br&gt;-	else
&lt;br&gt;+	} else {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;+		cifs_autodisable_serverino(cifs_sb);
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid);
&lt;br&gt;&amp;nbsp;	tmp_dentry = cifs_readdir_lookup(file-&amp;gt;f_dentry, &amp;qstring, &amp;fattr);
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26259664&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-clean-up-handling-when-server-doesn%27t-consistently-support-inode-numbers-tp26259664p26259664.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26256427</id>
	<title>suddenly doesn't work with the username and password in credentials=... in the mount line</title>
	<published>2009-11-08T10:18:50Z</published>
	<updated>2009-11-08T10:18:50Z</updated>
	<author>
		<name>Kin Yip</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;I'm using Scientific Linux 5.3 (~ RedHat Enterprise 5.3).
&lt;br&gt;&lt;br&gt;After a reboot today, I probably have switched to a new kernel, &amp;quot;uname 
&lt;br&gt;-a&amp;quot; gives :
&lt;br&gt;&lt;br&gt;Linux yipkin.c-ad.bnl.gov 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:22:26 
&lt;br&gt;EDT 2009 i686 i686 i386 GNU/Linux
&lt;br&gt;&lt;br&gt;Somehow, the auto-mounting with cifs for the following line in 
&lt;br&gt;/etc/fstab doesn't work but it used to work :
&lt;br&gt;&lt;br&gt;//c-adweb/data &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/mnt/c-adweb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cifs &amp;nbsp; &amp;nbsp;
&lt;br&gt;domain=BNL,credentials=/root/.credentials,gid=kinyip,uid=kinyip 0 0
&lt;br&gt;&lt;br&gt;I see error in /var/log/message:
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: Status code returned 0xc000006d 
&lt;br&gt;NT_STATUS_LOGON_FAILURE
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: Send error in SessSetup = -13
&lt;br&gt;Nov &amp;nbsp;8 13:11:50 yipkin kernel: &amp;nbsp;CIFS VFS: cifs_mount failed w/return 
&lt;br&gt;code = -13
&lt;br&gt;&lt;br&gt;Using the command :
&lt;br&gt;&amp;nbsp; &amp;nbsp;mount -t cifs -o 
&lt;br&gt;domain=BNL,credentials=/root/.credentials,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;//c-adweb/data /mnt/c-adweb
&lt;br&gt;&lt;br&gt;would get me :
&lt;br&gt;mount error 13 = Permission denied
&lt;br&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&lt;br&gt;And I can see the same errors in /var/log/message (or dmesg).
&lt;br&gt;&lt;br&gt;If I do &amp;quot;mount -t cifs -o domain=BNL,user=kinyip,gid=500,uid=500 &amp;nbsp;
&lt;br&gt;//c-adweb/data /mnt/c-adweb&amp;quot;, it would ask me for password and
&lt;br&gt;then it'd mount successfully !!
&lt;br&gt;&lt;br&gt;In my file /root/.credentials &amp;nbsp;(&amp;quot;ls&amp;quot; would have : -rw------- 1 root root 
&lt;br&gt;39 Nov &amp;nbsp;8 13:02 /root/.credentials ), it's like
&lt;br&gt;username=kinyip
&lt;br&gt;password=$.....
&lt;br&gt;&lt;br&gt;My first character of my password is $ and I'm wondering whether this is 
&lt;br&gt;creating trouble ???? &amp;nbsp;I've tried &amp;quot;\$....&amp;quot; but it doesn't help.
&lt;br&gt;&lt;br&gt;Any idea ???
&lt;br&gt;&lt;br&gt;Kin
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26256427&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/suddenly-doesn%27t-work-with-the-username-and-password-in-credentials%3D...-in-the-mount-line-tp26256427p26256427.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26157139</id>
	<title>Re: Can't mount smb shares using mount.cifs with 2.6.31 kernel</title>
	<published>2009-11-01T17:40:59Z</published>
	<updated>2009-11-01T17:40:59Z</updated>
	<author>
		<name>Timothy Normand Miller</name>
	</author>
	<content type="html">On Fri, Oct 16, 2009 at 3:12 PM, Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157139&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Yay. Figured out how to fix the wireshark dissector for this FindFile
&lt;br&gt;&amp;gt; infolevel. Wireshark patch attached that allows me to dissect these
&lt;br&gt;&amp;gt; packets correctly.  I'll plan to send that to the wireshark devs as
&lt;br&gt;&amp;gt; soon as I figure out where to send it. The good news is that I think I
&lt;br&gt;&amp;gt; see the problem. The bad news is that I'm not quite sure how to fix it
&lt;br&gt;&amp;gt; yet and it may even be a server bug.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Prior to 2.6.30, the default was to generate inode numbers out of the
&lt;br&gt;&amp;gt; air (noserverino). With 2.6.31, the default is &amp;quot;serverino&amp;quot; which makes
&lt;br&gt;&amp;gt; it so that we query the server for inode numbers. When mounting, we do
&lt;br&gt;&amp;gt; a QueryPathInfo against the root inode. With serverino enabled, we also
&lt;br&gt;&amp;gt; do a FileInternalInfo query against the file for the
&lt;br&gt;&amp;gt; &amp;quot;IndexNumber&amp;quot; (which I assumed was also the equivalent of the UniqueId
&lt;br&gt;&amp;gt; but maybe isn't?). In any case, that first call succeeds against this
&lt;br&gt;&amp;gt; server.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The problem comes in with the FindFile call. There we do a
&lt;br&gt;&amp;gt; FIND_FILE_ID_FULL_DIRECTORY_INFO infolevel query. That also succeeds,
&lt;br&gt;&amp;gt; but the inode number values in there (FileId's) are zeroed out. That's
&lt;br&gt;&amp;gt; technically within the letter of the spec for that call. When the
&lt;br&gt;&amp;gt; underlying filesystem doesn't support unique ID's, then it's supposed
&lt;br&gt;&amp;gt; to return 0. The problem is that it doesn't make much sense for the
&lt;br&gt;&amp;gt; server to claim that it does support unique ID's for one call but not
&lt;br&gt;&amp;gt; for others.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Ideally, there'll be a way to deal with this automatically, but I'll
&lt;br&gt;&amp;gt; probably need to ponder this a bit. In any case, thanks for the problem
&lt;br&gt;&amp;gt; report. I'll let you know once I come up with something.
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;I'm very sorry I took so long to try out this patch. &amp;nbsp;It appears to
&lt;br&gt;have done the trick. &amp;nbsp;Thanks!
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Timothy Normand Miller
&lt;br&gt;&lt;a href=&quot;http://www.cse.ohio-state.edu/~millerti&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.cse.ohio-state.edu/~millerti&lt;/a&gt;&lt;br&gt;Open Graphics Project
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26157139&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Can%27t-mount-smb-shares-using-mount.cifs-with-2.6.31-kernel-tp25920016p26157139.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26101370</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T13:04:20Z</published>
	<updated>2009-10-28T13:04:20Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 14.08:30 Jeff Layton wrote:
&lt;br&gt;&amp;gt; By &amp;quot;valid host&amp;quot; do you mean that it's a separate machine entirely? Or
&lt;br&gt;&amp;gt; are you playing around with floating addresses in a clustered setup?
&lt;br&gt;&lt;br&gt;As it was explained to me, this is a cluster setup where the cluster nodes 
&lt;br&gt;have multiple floating IP addresses (for different samba server instances), but 
&lt;br&gt;join the domain using their canonical host name.
&lt;br&gt;&lt;br&gt;&amp;gt; Either way, this appears to be a server misconfiguration. A properly
&lt;br&gt;&amp;gt; configured server should accept principals for all possible hostname
&lt;br&gt;&amp;gt; aliases. The fact that it's expecting a service principal for a
&lt;br&gt;&amp;gt; completely different host and not accepting a service principal for one
&lt;br&gt;&amp;gt; of its names looks broken to me.
&lt;br&gt;&lt;br&gt;Ok... I've reported that to the people who run the servers, but the upshot of 
&lt;br&gt;it seems to be that Windows and smbclient work in this case but mount.cifs 
&lt;br&gt;won't.
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 19.28:36 Jeff Layton wrote:
&lt;br&gt;&amp;gt; Actually...I'm not terribly opposed to adding a mount option for this.
&lt;br&gt;&amp;gt; If someone wants to do the legwork on it and propose a patch, I'll be
&lt;br&gt;&amp;gt; happy to help review it.
&lt;br&gt;&lt;br&gt;I don't have the cycles to do this myself -- I'm just going to make do with 
&lt;br&gt;password auth. However, thanks for your help and explanations.
&lt;br&gt;&lt;br&gt;Andrew
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26101370&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26101370.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26099730</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T11:28:36Z</published>
	<updated>2009-10-28T11:28:36Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 13:49:58 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; &amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; &amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; &amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; &amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; &amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; &amp;gt; be none the wiser.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;&amp;gt; perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;&amp;gt; service principal explicitly.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;Actually...I'm not terribly opposed to adding a mount option for this.
&lt;br&gt;If someone wants to do the legwork on it and propose a patch, I'll be
&lt;br&gt;happy to help review it.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26099730&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26099730.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26094345</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T06:08:30Z</published>
	<updated>2009-10-28T06:08:30Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 13:49:58 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; &amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; &amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; &amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; &amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; &amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; &amp;gt; be none the wiser.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;&amp;gt; perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;&amp;gt; service principal explicitly.
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;I think that would be unwise -- why use kerberos at all if you're going
&lt;br&gt;to water it down?
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; &amp;gt; Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;&amp;gt; &amp;gt; server, what exactly do you mean?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I mean that it is a valid host with a different IP from the host with the 
&lt;br&gt;&amp;gt; share, and it does not itself offer SMB service:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ host fs.systems
&lt;br&gt;&amp;gt; fs.systems.inf.ethz.ch is an alias for fs-systems.inf.ethz.ch.
&lt;br&gt;&amp;gt; fs-systems.inf.ethz.ch has address 129.132.19.42
&lt;br&gt;&amp;gt; $ host fs-srv1
&lt;br&gt;&amp;gt; fs-srv1.ethz.ch is an alias for fs-srv1.inf.ethz.ch.
&lt;br&gt;&amp;gt; fs-srv1.inf.ethz.ch has address 129.132.19.5
&lt;br&gt;&amp;gt; $ telnet fs-srv1 microsoft-ds
&lt;br&gt;&amp;gt; Trying 129.132.19.5...
&lt;br&gt;&amp;gt; telnet: Unable to connect to remote host: Connection refused
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; (I don't know the exact details of the file service setup here, but I can find 
&lt;br&gt;&amp;gt; out more if it's helpful).
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;By &amp;quot;valid host&amp;quot; do you mean that it's a separate machine entirely? Or
&lt;br&gt;are you playing around with floating addresses in a clustered setup?
&lt;br&gt;&lt;br&gt;Either way, this appears to be a server misconfiguration. A properly
&lt;br&gt;configured server should accept principals for all possible hostname
&lt;br&gt;aliases. The fact that it's expecting a service principal for a
&lt;br&gt;completely different host and not accepting a service principal for one
&lt;br&gt;of its names looks broken to me.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094345&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26094345.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26094091</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T05:49:58Z</published>
	<updated>2009-10-28T05:49:58Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi Jeff,
&lt;br&gt;&lt;br&gt;On Wednesday 28 October 2009 13.31:27 Jeff Layton wrote:
&lt;br&gt;&amp;gt; The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;&amp;gt; authentication, eventually it should. The problem with trusting the
&lt;br&gt;&amp;gt; mechListMIC is that it makes the client susceptible to
&lt;br&gt;&amp;gt; man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;&amp;gt; server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;&amp;gt; be none the wiser.
&lt;br&gt;&lt;br&gt;Hm, I see. Do you happen to know if smbclient does this? In the interim, 
&lt;br&gt;perhaps it would be useful to have a mount option that could specify the 
&lt;br&gt;service principal explicitly.
&lt;br&gt;&lt;br&gt;&amp;gt; Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;&amp;gt; server, what exactly do you mean?
&lt;br&gt;&lt;br&gt;I mean that it is a valid host with a different IP from the host with the 
&lt;br&gt;share, and it does not itself offer SMB service:
&lt;br&gt;&lt;br&gt;$ host fs.systems
&lt;br&gt;fs.systems.inf.ethz.ch is an alias for fs-systems.inf.ethz.ch.
&lt;br&gt;fs-systems.inf.ethz.ch has address 129.132.19.42
&lt;br&gt;$ host fs-srv1
&lt;br&gt;fs-srv1.ethz.ch is an alias for fs-srv1.inf.ethz.ch.
&lt;br&gt;fs-srv1.inf.ethz.ch has address 129.132.19.5
&lt;br&gt;$ telnet fs-srv1 microsoft-ds
&lt;br&gt;Trying 129.132.19.5...
&lt;br&gt;telnet: Unable to connect to remote host: Connection refused
&lt;br&gt;&lt;br&gt;(I don't know the exact details of the file service setup here, but I can find 
&lt;br&gt;out more if it's helpful).
&lt;br&gt;&lt;br&gt;Andrew
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26094091&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26094091.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26093823</id>
	<title>Re: mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T05:31:27Z</published>
	<updated>2009-10-28T05:31:27Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Wed, 28 Oct 2009 10:20:26 +0100
&lt;br&gt;Andrew Baumann &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;andrewb@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi all,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I'm trying to get mount.cifs to work with kerberos authentication (sec=krb5).
&lt;br&gt;&amp;gt; smbclient -k works, however mount.cifs reports:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; $ /sbin/mount.cifs //fs.systems.inf.ethz.ch/sharename ./mnt -o sec=krb5
&lt;br&gt;&amp;gt; mount error(126): Required key not available
&lt;br&gt;&amp;gt; Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The dmesg output is as follows:
&lt;br&gt;&amp;gt; [3460893.349868] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifsfs.c: Devname: //fs.systems.inf.ethz.ch/sharename flags: 64
&lt;br&gt;&amp;gt; [3460893.349874] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 147 with uid: 0
&lt;br&gt;&amp;gt; [3460893.349882] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Username: username
&lt;br&gt;&amp;gt; [3460893.349885] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: UNC: \\fs.systems.inf.ethz.ch\sharename ip: 129.132.19.42
&lt;br&gt;&amp;gt; [3460893.349894] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Socket created
&lt;br&gt;&amp;gt; [3460893.350930] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
&lt;br&gt;&amp;gt; [3460893.350973] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;&amp;gt; [3460893.350979] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: secFlags 0x8
&lt;br&gt;&amp;gt; [3460893.350981] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Kerberos only mechanism, enable extended security
&lt;br&gt;&amp;gt; [3460893.350985] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 114
&lt;br&gt;&amp;gt; [3460893.350988] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;&amp;gt; [3460893.351004] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Demultiplex PID: 28499
&lt;br&gt;&amp;gt; [3460893.354098] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0xb7
&lt;br&gt;&amp;gt; [3460893.355167] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;&amp;gt; [3460893.355173] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
&lt;br&gt;&amp;gt; [3460893.355176] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;&amp;gt; [3460893.355179] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;&amp;gt; [3460893.355182] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: Need to call asn1_octets_decode() function for cifs/fs-
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; [3460893.355185] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Signing disabled
&lt;br&gt;&amp;gt; [3460893.355190] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: negprot rc 0
&lt;br&gt;&amp;gt; [3460893.355192] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x8000f3fd TimeAdjust: -3600
&lt;br&gt;&amp;gt; [3460893.355196] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: sess setup type 6
&lt;br&gt;&amp;gt; [3460893.355202] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifs_spnego.c: key description = 
&lt;br&gt;&amp;gt; ver=0x2;host=fs.systems.inf.ethz.ch;ip4=129.132.19.42;sec=krb5;uid=0xc926;user=username
&lt;br&gt;&amp;gt; [3460893.410781] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: ssetup freeing small buf ffff880114155dc0
&lt;br&gt;&amp;gt; [3460893.410786] &amp;nbsp;CIFS VFS: Send error in SessSetup = -126
&lt;br&gt;&amp;gt; [3460893.410796] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 147) rc = -126
&lt;br&gt;&amp;gt; [3460893.410799] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -126
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ... from this, and looking at packet capture logs, it seems that the negotiate
&lt;br&gt;&amp;gt; response from the server specifies a principal of &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; however the cifs code persists in trying to get a kerberos ticket for the file
&lt;br&gt;&amp;gt; server host (fs.systems.inf.ethz.ch), which fails. smbclient gets this right and
&lt;br&gt;&amp;gt; presents the cached ticket for &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note that &amp;nbsp;is really a different host from the file server, so I cannot
&lt;br&gt;&amp;gt; work around this problem by simply mounting with a different host name.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is the full negotiate response from the server (and I can send other
&lt;br&gt;&amp;gt; packet logs if useful):
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; NetBIOS Session Service
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Message Type: Session message
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Length: 179
&lt;br&gt;&amp;gt; SMB (Server Message Block Protocol)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; SMB Header
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Component: SMB
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Response to: 4]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Time from request: 0.001272000 seconds]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SMB Command: Negotiate Protocol (0x72)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NT Status: STATUS_SUCCESS (0x00000000)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags: 0x88
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... = Request/Response: Message is a response to the client/redirector
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... = Notify: Notify client only on open
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... = Oplocks: OpLock not requested/granted
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... = Case Sensitivity: Path names are caseless
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...0 = Lock and Read: Lock&amp;Read, Write&amp;Unlock are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags2: 0xc801
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... = Unicode Strings: Strings are Unicode
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .1.. .... .... .... = Error Code Type: Error codes are NT error codes
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .0.. .... = Long Names Used: Path names in request are not long file names
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .0.. = Security Signatures: Security signatures are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID High: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Signature: 0000000000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reserved: 0000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tree ID: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID: 28048
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User ID: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Multiplex ID: 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Negotiate Protocol Response (0x72)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Word Count (WCT): 17
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dialect Index: 8, greater than LANMAN2.1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Mode: 0x03
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...1 = Mode: USER security mode
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..1. = Password: ENCRYPTED password. Use challenge/response
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .0.. = Signatures: Security signatures NOT enabled
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 0... = Sig Req: Security signatures NOT required
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Mpx Count: 50
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max VCs: 1
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Buffer Size: 16644
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Raw Buffer: 65536
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session Key: 0x00001ed9
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Capabilities: 0x8000f3fd
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ...1 = Raw Mode: Read Raw and Write Raw are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ..0. = MPX Mode: Read Mpx and Write Mpx are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... .1.. = Unicode: Unicode strings are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... 1... = Large Files: Large files are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ...1 .... = NT SMBs: NT SMBs are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ..1. .... = RPC Remote APIs: RPC remote APIs are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .1.. .... = NT Status Codes: NT status codes are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... 1... .... = Level 2 Oplocks: Level 2 oplocks are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ...1 .... .... = Lock and Read: Lock and Read is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ..1. .... .... = NT Find: NT Find is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ...1 .... .... .... = Dfs: Dfs is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ..1. .... .... .... = Infolevel Passthru: NT information level request passthrough is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .1.. .... .... .... = Large ReadX: Large Read andX is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... 1... .... .... .... = Large WriteX: Large Write andX is supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... 0... .... .... .... .... .... = UNIX: UNIX extensions are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. .... .... .... .... .... .... = Reserved: Reserved
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... .... .... .... .... = Bulk Transfer: Bulk Read and Bulk Write are not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... .... .... .... .... .... .... = Compressed Data: Compressed data transfer is not supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... .... .... .... .... = Extended Security: Extended security exchanges are supported
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System Time: Oct 28, 2009 09:42:32.000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Time Zone: -60 min from UTC
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key Length: 0
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Byte Count (BCC): 110
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server GUID: 66732D73727631000000000000000000
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Blob: 605C06062B0601050502A0523050A024302206092A864886...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GSS-API Generic Security Service Application Program Interface
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OID: 1.3.6.1.5.5.2 (SPNEGO - Simple Protected Negotiation)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPNEGO
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; negTokenInit
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechTypes: 3 items
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.3.6.1.4.1.311.2.2.10 (NTLMSSP - Microsoft NTLM Security Support Provider)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechListMIC: 3026A0241B22636966732F66732D737276312E696E662E65...
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; principal: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;CIFS currently relies on you to specify the same hostname in the UNC as
&lt;br&gt;the krb5 service principal that you need to mount.
&lt;br&gt;&lt;br&gt;The reason is that while CIFS doesn't currently do mutual krb5
&lt;br&gt;authentication, eventually it should. The problem with trusting the
&lt;br&gt;mechListMIC is that it makes the client susceptible to
&lt;br&gt;man-in-the-middle attacks. An attacker could redirect traffic to a
&lt;br&gt;server of his choosing (perhaps by spoofing DNS) and the client would
&lt;br&gt;be none the wiser.
&lt;br&gt;&lt;br&gt;Now...when you say that fs-srv1 is a different host from the file
&lt;br&gt;server, what exactly do you mean?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=5&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26093823&amp;i=6&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26093823.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26091557</id>
	<title>mount.cifs with sec=krb5 where kerberos principal is not the same as file server</title>
	<published>2009-10-28T02:20:26Z</published>
	<updated>2009-10-28T02:20:26Z</updated>
	<author>
		<name>Andrew Baumann-2</name>
	</author>
	<content type="html">Hi all,
&lt;br&gt;&lt;br&gt;I'm trying to get mount.cifs to work with kerberos authentication (sec=krb5).
&lt;br&gt;smbclient -k works, however mount.cifs reports:
&lt;br&gt;&lt;br&gt;$ /sbin/mount.cifs //fs.systems.inf.ethz.ch/sharename ./mnt -o sec=krb5
&lt;br&gt;mount error(126): Required key not available
&lt;br&gt;Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
&lt;br&gt;&lt;br&gt;The dmesg output is as follows:
&lt;br&gt;[3460893.349868] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifsfs.c: Devname: //fs.systems.inf.ethz.ch/sharename flags: 64
&lt;br&gt;[3460893.349874] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: in cifs_mount as Xid: 147 with uid: 0
&lt;br&gt;[3460893.349882] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Username: username
&lt;br&gt;[3460893.349885] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: UNC: \\fs.systems.inf.ethz.ch\sharename ip: 129.132.19.42
&lt;br&gt;[3460893.349894] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Socket created
&lt;br&gt;[3460893.350930] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: sndbuf 16384 rcvbuf 87380 rcvtimeo 0x7fffffffffffffff
&lt;br&gt;[3460893.350973] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Existing smb sess not found
&lt;br&gt;[3460893.350979] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: secFlags 0x8
&lt;br&gt;[3460893.350981] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Kerberos only mechanism, enable extended security
&lt;br&gt;[3460893.350985] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: For smb_command 114
&lt;br&gt;[3460893.350988] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/transport.c: Sending smb of length 78
&lt;br&gt;[3460893.351004] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Demultiplex PID: 28499
&lt;br&gt;[3460893.354098] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: rfc1002 length 0xb7
&lt;br&gt;[3460893.355167] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Dialect: 2
&lt;br&gt;[3460893.355173] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0x1bb92
&lt;br&gt;[3460893.355176] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 7 oid = 0x1 0x2 0x348 0xbb92
&lt;br&gt;[3460893.355179] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: OID len = 10 oid = 0x1 0x3 0x6 0x1
&lt;br&gt;[3460893.355182] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/asn1.c: Need to call asn1_octets_decode() function for cifs/fs-
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;[3460893.355185] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: Signing disabled
&lt;br&gt;[3460893.355190] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifssmb.c: negprot rc 0
&lt;br&gt;[3460893.355192] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: Security Mode: 0x3 Capabilities: 0x8000f3fd TimeAdjust: -3600
&lt;br&gt;[3460893.355196] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: sess setup type 6
&lt;br&gt;[3460893.355202] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/cifs_spnego.c: key description = 
&lt;br&gt;ver=0x2;host=fs.systems.inf.ethz.ch;ip4=129.132.19.42;sec=krb5;uid=0xc926;user=username
&lt;br&gt;[3460893.410781] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/sess.c: ssetup freeing small buf ffff880114155dc0
&lt;br&gt;[3460893.410786] &amp;nbsp;CIFS VFS: Send error in SessSetup = -126
&lt;br&gt;[3460893.410796] &amp;nbsp;/build/buildd/linux-2.6.28/fs/cifs/connect.c: CIFS VFS: leaving cifs_mount (xid = 147) rc = -126
&lt;br&gt;[3460893.410799] &amp;nbsp;CIFS VFS: cifs_mount failed w/return code = -126
&lt;br&gt;&lt;br&gt;... from this, and looking at packet capture logs, it seems that the negotiate
&lt;br&gt;response from the server specifies a principal of &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;however the cifs code persists in trying to get a kerberos ticket for the file
&lt;br&gt;server host (fs.systems.inf.ethz.ch), which fails. smbclient gets this right and
&lt;br&gt;presents the cached ticket for &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;.
&lt;br&gt;&lt;br&gt;Note that fs-srv1 is really a different host from the file server, so I cannot
&lt;br&gt;work around this problem by simply mounting with a different host name.
&lt;br&gt;&lt;br&gt;Here is the full negotiate response from the server (and I can send other
&lt;br&gt;packet logs if useful):
&lt;br&gt;&lt;br&gt;NetBIOS Session Service
&lt;br&gt;&amp;nbsp; &amp;nbsp; Message Type: Session message
&lt;br&gt;&amp;nbsp; &amp;nbsp; Length: 179
&lt;br&gt;SMB (Server Message Block Protocol)
&lt;br&gt;&amp;nbsp; &amp;nbsp; SMB Header
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Component: SMB
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Response to: 4]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [Time from request: 0.001272000 seconds]
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SMB Command: Negotiate Protocol (0x72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NT Status: STATUS_SUCCESS (0x00000000)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags: 0x88
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... = Request/Response: Message is a response to the client/redirector
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... = Notify: Notify client only on open
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... = Oplocks: OpLock not requested/granted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... = Canonicalized Pathnames: Pathnames are not canonicalized
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... = Case Sensitivity: Path names are caseless
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. = Receive Buffer Posted: Receive buffer has not been posted
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...0 = Lock and Read: Lock&amp;Read, Write&amp;Unlock are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Flags2: 0xc801
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... = Unicode Strings: Strings are Unicode
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .1.. .... .... .... = Error Code Type: Error codes are NT error codes
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... = Execute-only Reads: Don't permit reads if execute-only
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ...0 .... .... .... = Dfs: Don't resolve pathnames with Dfs
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 1... .... .... = Extended Security Negotiation: Extended security negotiation is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .0.. .... = Long Names Used: Path names in request are not long file names
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .0.. = Security Signatures: Security signatures are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ..0. = Extended Attributes: Extended attributes are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... ...1 = Long Names Allowed: Long file names are allowed in the response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID High: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Signature: 0000000000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reserved: 0000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Tree ID: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Process ID: 28048
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; User ID: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Multiplex ID: 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; Negotiate Protocol Response (0x72)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Word Count (WCT): 17
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Dialect Index: 8, greater than LANMAN2.1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Mode: 0x03
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ...1 = Mode: USER security mode
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..1. = Password: ENCRYPTED password. Use challenge/response
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .0.. = Signatures: Security signatures NOT enabled
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... 0... = Sig Req: Security signatures NOT required
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Mpx Count: 50
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max VCs: 1
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Buffer Size: 16644
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Max Raw Buffer: 65536
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Session Key: 0x00001ed9
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Capabilities: 0x8000f3fd
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ...1 = Raw Mode: Read Raw and Write Raw are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... ..0. = MPX Mode: Read Mpx and Write Mpx are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... .1.. = Unicode: Unicode strings are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .... 1... = Large Files: Large files are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ...1 .... = NT SMBs: NT SMBs are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... ..1. .... = RPC Remote APIs: RPC remote APIs are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... .1.. .... = NT Status Codes: NT status codes are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... .... 1... .... = Level 2 Oplocks: Level 2 oplocks are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ...1 .... .... = Lock and Read: Lock and Read is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .... ..1. .... .... = NT Find: NT Find is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ...1 .... .... .... = Dfs: Dfs is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... ..1. .... .... .... = Infolevel Passthru: NT information level request passthrough is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... .1.. .... .... .... = Large ReadX: Large Read andX is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... .... .... 1... .... .... .... = Large WriteX: Large Write andX is supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... .... 0... .... .... .... .... .... = UNIX: UNIX extensions are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .... ..0. .... .... .... .... .... .... = Reserved: Reserved
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ..0. .... .... .... .... .... .... .... = Bulk Transfer: Bulk Read and Bulk Write are not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; .0.. .... .... .... .... .... .... .... = Compressed Data: Compressed data transfer is not supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1... .... .... .... .... .... .... .... = Extended Security: Extended security exchanges are supported
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System Time: Oct 28, 2009 09:42:32.000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server Time Zone: -60 min from UTC
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Key Length: 0
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Byte Count (BCC): 110
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Server GUID: 66732D73727631000000000000000000
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Security Blob: 605C06062B0601050502A0523050A024302206092A864886...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; GSS-API Generic Security Service Application Program Interface
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OID: 1.3.6.1.5.5.2 (SPNEGO - Simple Protected Negotiation)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; SPNEGO
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; negTokenInit
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechTypes: 3 items
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.113554.1.2.2 (KRB5 - Kerberos 5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.2.840.48018.1.2.2 (MS KRB5 - Microsoft Kerberos 5)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Item: 1.3.6.1.4.1.311.2.2.10 (NTLMSSP - Microsoft NTLM Security Support Provider)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mechListMIC: 3026A0241B22636966732F66732D737276312E696E662E65...
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; principal: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;cifs/fs-srv1.inf.ethz.ch@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;&lt;br&gt;$ uname -a
&lt;br&gt;Linux prak 2.6.28-15-generic #49-Ubuntu SMP Tue Aug 18 19:25:34 UTC 2009 x86_64 GNU/Linux
&lt;br&gt;$ /sbin/mount.cifs -V
&lt;br&gt;mount.cifs version: 1.12-3.3.2
&lt;br&gt;$ smbclient -V
&lt;br&gt;Version 3.3.2
&lt;br&gt;$ /usr/sbin/cifs.upcall -v
&lt;br&gt;version: 1.2
&lt;br&gt;$ grep cifs /etc/request-key.conf
&lt;br&gt;create &amp;nbsp;cifs.spnego &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/sbin/cifs.upcall -c %k %d
&lt;br&gt;create &amp;nbsp;dns_resolver &amp;nbsp; &amp;nbsp;* &amp;nbsp; &amp;nbsp; &amp;nbsp; * &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/sbin/cifs.upcall -c %k
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Andrew
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26091557&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/mount.cifs-with-sec%3Dkrb5-where-kerberos-principal-is-not-the-same-as-file-server-tp26091557p26091557.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079315</id>
	<title>[PATCH] cifs: don't use CIFSGetSrvInodeNumber in is_path_accessible</title>
	<published>2009-10-27T08:02:44Z</published>
	<updated>2009-10-27T08:02:44Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">Because it's lighter weight, CIFS tries to do a QPathInfo call with an
&lt;br&gt;infolevel of SMB_QUERY_FILE_INTERNAL_INFO to verify the accessibility of
&lt;br&gt;the root inode. It then falls back to using an infolevel of
&lt;br&gt;SMB_QUERY_FILE_ALL_INFO if that fails with -EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;There's a problem however. SMB_QUERY_FILE_INTERNAL_INFO isn't as well
&lt;br&gt;supported by all servers as SMB_QUERY_FILE_ALL_INFO is, and the error
&lt;br&gt;returns from those servers aren't well standardized. I have at least one
&lt;br&gt;report of a server that returns NT_STATUS_INTERNAL_ERROR (which
&lt;br&gt;translates to EIO) rather than something that translates to EOPNOTSUPP.
&lt;br&gt;&lt;br&gt;Given that that function only gets called at mount time, I think it's
&lt;br&gt;better to do this as simply as possible. Rather than trying to be
&lt;br&gt;clever, just have is_path_accessible use SMB_QUERY_FILE_ALL_INFO. That
&lt;br&gt;call is widely supported and it shouldn't increase the overhead
&lt;br&gt;significantly.
&lt;br&gt;&lt;br&gt;Unfortunately, the reporter of this problem doesn't seem to be in a
&lt;br&gt;hurry to test it, so I don't have any test results from it. Given what I
&lt;br&gt;see in the captures though, I expect that this will fix the problem.
&lt;br&gt;&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079315&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/connect.c | &amp;nbsp; &amp;nbsp;8 --------
&lt;br&gt;&amp;nbsp;1 files changed, 0 insertions(+), 8 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
&lt;br&gt;index b090980..63ea83f 100644
&lt;br&gt;--- a/fs/cifs/connect.c
&lt;br&gt;+++ b/fs/cifs/connect.c
&lt;br&gt;@@ -2220,16 +2220,8 @@ is_path_accessible(int xid, struct cifsTconInfo *tcon,
&lt;br&gt;&amp;nbsp;		 &amp;nbsp; struct cifs_sb_info *cifs_sb, const char *full_path)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int rc;
&lt;br&gt;-	__u64 inode_num;
&lt;br&gt;&amp;nbsp;	FILE_ALL_INFO *pfile_info;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	rc = CIFSGetSrvInodeNumber(xid, tcon, full_path, &amp;inode_num,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;local_nls,
&lt;br&gt;-				 &amp;nbsp; cifs_sb-&amp;gt;mnt_cifs_flags &amp;
&lt;br&gt;-						CIFS_MOUNT_MAP_SPECIAL_CHR);
&lt;br&gt;-	if (rc != -EOPNOTSUPP)
&lt;br&gt;-		return rc;
&lt;br&gt;-
&lt;br&gt;&amp;nbsp;	pfile_info = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
&lt;br&gt;&amp;nbsp;	if (pfile_info == NULL)
&lt;br&gt;&amp;nbsp;		return -ENOMEM;
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079315&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-fix-server-returning-zeroed-out-FileID%27s-in-SMB_FIND_FILE_ID_FULL_DIR_INFO-tp26079312p26079315.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26079312</id>
	<title>[PATCH] cifs: fix server returning zeroed out FileID's in SMB_FIND_FILE_ID_FULL_DIR_INFO</title>
	<published>2009-10-27T08:02:43Z</published>
	<updated>2009-10-27T08:02:43Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">It's possible that a server will return a valid FileID when we query the
&lt;br&gt;FILE_INTERNAL_INFO for the root inode, but then zeroed out inode numbers
&lt;br&gt;when we do a FindFile with an infolevel of
&lt;br&gt;SMB_FIND_FILE_ID_FULL_DIR_INFO.
&lt;br&gt;&lt;br&gt;In this situation turn off querying for server inode numbers, and just
&lt;br&gt;generate an inode number using iunique.
&lt;br&gt;&lt;br&gt;While I've given this patch to the reporter and asked him to test it, he
&lt;br&gt;hasn't yet come back with the results. So I can't confirm whether this
&lt;br&gt;really fixes the problem or not. I expect that it will, but I'll
&lt;br&gt;understand if you'd rather wait to commit this until we have
&lt;br&gt;confirmation.
&lt;br&gt;&lt;br&gt;Reported-by: Timothy Normand Miller &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;theosib@...&lt;/a&gt;&amp;gt;
&lt;br&gt;Signed-off-by: Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;---
&lt;br&gt;&amp;nbsp;fs/cifs/readdir.c | &amp;nbsp; &amp;nbsp;8 +++++---
&lt;br&gt;&amp;nbsp;1 files changed, 5 insertions(+), 3 deletions(-)
&lt;br&gt;&lt;br&gt;diff --git a/fs/cifs/readdir.c b/fs/cifs/readdir.c
&lt;br&gt;index 1f098ca..bafef8b 100644
&lt;br&gt;--- a/fs/cifs/readdir.c
&lt;br&gt;+++ b/fs/cifs/readdir.c
&lt;br&gt;@@ -727,11 +727,13 @@ static int cifs_filldir(char *pfindEntry, struct file *file, filldir_t filldir,
&lt;br&gt;&amp;nbsp;		cifs_dir_info_to_fattr(&amp;fattr, (FILE_DIRECTORY_INFO *)
&lt;br&gt;&amp;nbsp;					pfindEntry, cifs_sb);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	/* FIXME: make _to_fattr functions fill this out */
&lt;br&gt;-	if (pCifsF-&amp;gt;srch_inf.info_level == SMB_FIND_FILE_ID_FULL_DIR_INFO)
&lt;br&gt;+	if (inum) {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = inum;
&lt;br&gt;-	else
&lt;br&gt;+	} else {
&lt;br&gt;&amp;nbsp;		fattr.cf_uniqueid = iunique(sb, ROOT_I);
&lt;br&gt;+		if (cifs_sb-&amp;gt;mnt_cifs_flags &amp; CIFS_MOUNT_SERVER_INUM)
&lt;br&gt;+			cifs_sb-&amp;gt;mnt_cifs_flags &amp;= ~CIFS_MOUNT_SERVER_INUM;
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	ino = cifs_uniqueid_to_ino_t(fattr.cf_uniqueid);
&lt;br&gt;&amp;nbsp;	tmp_dentry = cifs_readdir_lookup(file-&amp;gt;f_dentry, &amp;qstring, &amp;fattr);
&lt;br&gt;-- 
&lt;br&gt;1.6.0.6
&lt;br&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26079312&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/-PATCH--cifs%3A-fix-server-returning-zeroed-out-FileID%27s-in-SMB_FIND_FILE_ID_FULL_DIR_INFO-tp26079312p26079312.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26076897</id>
	<title>Re: Manual page for mount.cifs credentials option</title>
	<published>2009-10-27T05:34:12Z</published>
	<updated>2009-10-27T05:34:12Z</updated>
	<author>
		<name>Jeff Layton-4</name>
	</author>
	<content type="html">On Tue, 27 Oct 2009 07:29:47 -0400
&lt;br&gt;Scott Lovenberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Jeff Layton wrote:On Thu, 22 Oct 2009 12:49:05 -0400
&lt;br&gt;&amp;gt; Scott Lovenberg &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; Not sure if this is the correct place to file this report, if not, please point me in the correct direction.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; The credentials option for mount.smbfs used to be the following format:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; user=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've found that the format supported for mount.cifs is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; username=name
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; password=pass
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; This seems at odds with the manual page for mount.cifs under the user=arg option:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Note
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The cifs vfs accepts the parameter user=, or for users familiar with smbfs it
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;accepts the longer form of the parameter username=. Similarly the longer smbfs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;style parameter names may be accepted as synonyms for the shorter cifs
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;parameters pass=,dom= and cred=.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; [...]
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I had, for whatever reason, assumed that the user option rules would apply to the credentials file or that it would be backwards compatible with the older mount.smbfs credentials file format. &amp;nbsp;Are either of these assumptions correct? &amp;nbsp;If not, would it make sense to add or reword the manual page a bit (assuming I'm not the only one that misinterpreted it) for clarity? &amp;nbsp;I wouldn't mind drafting up a proposal if other felt it was worth the effort.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Happy Version Numbers:
&lt;br&gt;&amp;gt; from The Fine Manual page for mount.cifs(8)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VERSION
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;This man page is correct for version 1.52 of the cifs vfs filesystem (roughly Linux kernel 2.6.24).
&lt;br&gt;&amp;gt; [1005 12:24 sun ~]#smbd -V
&lt;br&gt;&amp;gt; Version 3.0.33-3.7.el5
&lt;br&gt;&amp;gt; [1007 12:26 sun ~]#uname -a
&lt;br&gt;&amp;gt; Linux sanitized.network.tld 2.6.18-92.1.22.el5.centos.plusxen #1 SMP Wed Dec 17 11:22:13 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; Consistency here would probably be a good thing. A proposal for
&lt;br&gt;&amp;gt; cleaning it up would be welcome. Patches would be even better.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;The weekend slipped away from me (they all seem to do that lately...); I'm going to take a look at this tonight after work.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Would you agree that it is more desirable to add the &amp;quot;user=&amp;quot; format to mount.cifs to maintain backwards compatibility? &amp;nbsp;I think this is probably the most 'clean' way to deal with it.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I agree that it would be good to have cifs be option-compatible with
&lt;br&gt;smbfs. Not sure when we'll get to this however. It would probably be
&lt;br&gt;best to file a bug at:
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://bugzilla.samba.org/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://bugzilla.samba.org/&lt;/a&gt;&lt;br&gt;&lt;br&gt;So we don't lose track of it.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076897&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Manual-page-for-mount.cifs-credentials-option-tp26013415p26076897.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26076056</id>
	<title>Re: Manual page for mount.cifs credentials option</title>
	<published>2009-10-27T04:29:47Z</published>
	<updated>2009-10-27T04:29:47Z</updated>
	<author>
		<name>Scott Lovenberg</name>
	</author>
	<content type="html">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot;&gt;
&lt;html&gt;
&lt;head&gt;
  &lt;meta content=&quot;text/html;charset=ISO-8859-1&quot; http-equiv=&quot;Content-Type&quot;&gt;
  &lt;title&gt;&lt;/title&gt;
&lt;/head&gt;
&lt;body bgcolor=&quot;#ffffff&quot; text=&quot;#000000&quot;&gt;
Jeff Layton wrote:
&lt;blockquote cite=&quot;mid:20091023081622.59218902@tlielax.poochiereds.net&quot; type=&quot;cite&quot;&gt;
  &lt;pre wrap=&quot;&quot;&gt;On Thu, 22 Oct 2009 12:49:05 -0400
Scott Lovenberg &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076056&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;scott.lovenberg@...&lt;/a&gt; wrote:

  &lt;/pre&gt;
  &lt;blockquote type=&quot;cite&quot;&gt;
    &lt;pre wrap=&quot;&quot;&gt;Not sure if this is the correct place to file this report, if not, please point me in the correct direction.

The credentials option for mount.smbfs used to be the following format:
    user=name
    password=pass

I've found that the format supported for mount.cifs is:
    username=name
    password=pass

This seems at odds with the manual page for mount.cifs under the user=arg option:
    [...]
           Note
           The cifs vfs accepts the parameter user=, or for users familiar with smbfs it
           accepts the longer form of the parameter username=. Similarly the longer smbfs
           style parameter names may be accepted as synonyms for the shorter cifs
           parameters pass=,dom= and cred=.
    [...]

I had, for whatever reason, assumed that the user option rules would apply to the credentials file or that it would be backwards compatible with the older mount.smbfs credentials file format.  Are either of these assumptions correct?  If not, would it make sense to add or reword the manual page a bit (assuming I'm not the only one that misinterpreted it) for clarity?  I wouldn't mind drafting up a proposal if other felt it was worth the effort.


Happy Version Numbers:
from The Fine Manual page for mount.cifs(8)
        VERSION
           This man page is correct for version 1.52 of the cifs vfs filesystem (roughly Linux kernel 2.6.24).
[1005 12:24 sun ~]#smbd -V
Version 3.0.33-3.7.el5
[1007 12:26 sun ~]#uname -a
Linux sanitized.network.tld 2.6.18-92.1.22.el5.centos.plusxen #1 SMP Wed Dec 17 11:22:13 EST 2008 x86_64 x86_64 x86_64 GNU/Linux
    &lt;/pre&gt;
  &lt;/blockquote&gt;
  &lt;pre wrap=&quot;&quot;&gt;&lt;!----&gt;
Consistency here would probably be a good thing. A proposal for
cleaning it up would be welcome. Patches would be even better.

  &lt;/pre&gt;
&lt;/blockquote&gt;
The weekend slipped away from me (they all seem to do that lately...);
I'm going to take a look at this tonight after work.&lt;br&gt;
&lt;br&gt;
Would you agree that it is more desirable to add the &quot;user=&quot; format to
mount.cifs to maintain backwards compatibility?&amp;nbsp; I think this is
probably the most 'clean' way to deal with it.&lt;br&gt;
&lt;/body&gt;
&lt;/html&gt;
&lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26076056&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Manual-page-for-mount.cifs-credentials-option-tp26013415p26076056.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26075553</id>
	<title>Re: Hello</title>
	<published>2009-10-27T03:45:22Z</published>
	<updated>2009-10-27T03:45:22Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Mon, 26 Oct 2009 14:06:13 -0400
&lt;br&gt;Linux User &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linuxuser09@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I'm not sure if I am on the right mailing list for this questions. I'm having 
&lt;br&gt;&amp;gt; a hard time understanding/setting file permissions/uid/gid on the client side.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here's my mount line:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; sudo mount.cifs //comp2.localnet.webwaredev.org/games /mnt/games-share -v -o 
&lt;br&gt;&amp;gt; uid=500 gid=networkshares file_mode=0775 dir_mode=0775
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; It's in verbose and this was what was outputted:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; mount.cifs kernel mount options: 
&lt;br&gt;&amp;gt; unc=//comp2.localnet.webwaredev.org\games,user=root,ver=1,uid=500,ip=192.168.0.3,pass=********
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; And this is what I am running into:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; [lhorace@netsrv games-share]$ cd test
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ mkdir test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ ls -l
&lt;br&gt;&amp;gt; total 0
&lt;br&gt;&amp;gt; drwxr-xr-x. 2 lhorace root 0 2009-10-26 12:28 test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ touch filetext.txt
&lt;br&gt;&amp;gt; touch: cannot touch `filetext.txt': Permission denied
&lt;br&gt;&amp;gt; [lhorace@netsrv test]$ cd test2
&lt;br&gt;&amp;gt; [lhorace@netsrv test2]$ touch filetest.txt
&lt;br&gt;&amp;gt; touch: cannot touch `filetest.txt': Permission denied
&lt;br&gt;&amp;gt; [lhorace@netsrv test2]$
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On a regular filesystem folder, if I am the owner of the folder, I should be 
&lt;br&gt;&amp;gt; able to create files within the folder. And reading the output correctly, it 
&lt;br&gt;&amp;gt; seems that uid is the only thing that get's pass to the kernel.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Note: uid=500 = lhorace, and lhorace exists on bothsystems including 
&lt;br&gt;&amp;gt; networkshares.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; What am I doing wrong? Any hints/clues would be entirely appreciative thank 
&lt;br&gt;&amp;gt; you.. =)
&lt;/div&gt;&lt;br&gt;Permissions on CIFS are confusing stuff...
&lt;br&gt;&lt;br&gt;CIFS doesn't manage multiple credentials per mount. In this case,
&lt;br&gt;you're mounting the share with &amp;quot;user=root&amp;quot;. So even though on the local
&lt;br&gt;machine you're &amp;quot;lhorace&amp;quot; and the dir is owned by &amp;quot;lhorace&amp;quot; on the
&lt;br&gt;server, the call goes out over the wire as &amp;quot;root&amp;quot; (which is probably
&lt;br&gt;being mapped to an unprivileged user).
&lt;br&gt;&lt;br&gt;You probably want to redo the mount with user=lhorace, but be
&lt;br&gt;forewarned that all the activity will be done as &amp;quot;lhorace&amp;quot; no matter
&lt;br&gt;what user on the client is doing this activity.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26075553&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hello-tp26064712p26075553.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26064712</id>
	<title>Hello</title>
	<published>2009-10-26T11:06:13Z</published>
	<updated>2009-10-26T11:06:13Z</updated>
	<author>
		<name>Linux User-12</name>
	</author>
	<content type="html">I'm not sure if I am on the right mailing list for this questions. I'm having 
&lt;br&gt;a hard time understanding/setting file permissions/uid/gid on the client side.
&lt;br&gt;&lt;br&gt;Here's my mount line:
&lt;br&gt;&lt;br&gt;sudo mount.cifs //comp2.localnet.webwaredev.org/games /mnt/games-share -v -o 
&lt;br&gt;uid=500 gid=networkshares file_mode=0775 dir_mode=0775
&lt;br&gt;&lt;br&gt;It's in verbose and this was what was outputted:
&lt;br&gt;&lt;br&gt;mount.cifs kernel mount options: 
&lt;br&gt;unc=//comp2.localnet.webwaredev.org\games,user=root,ver=1,uid=500,ip=192.168.0.3,pass=********
&lt;br&gt;&lt;br&gt;And this is what I am running into:
&lt;br&gt;&lt;br&gt;[lhorace@netsrv games-share]$ cd test
&lt;br&gt;[lhorace@netsrv test]$ mkdir test2
&lt;br&gt;[lhorace@netsrv test]$ ls -l
&lt;br&gt;total 0
&lt;br&gt;drwxr-xr-x. 2 lhorace root 0 2009-10-26 12:28 test2
&lt;br&gt;[lhorace@netsrv test]$ touch filetext.txt
&lt;br&gt;touch: cannot touch `filetext.txt': Permission denied
&lt;br&gt;[lhorace@netsrv test]$ cd test2
&lt;br&gt;[lhorace@netsrv test2]$ touch filetest.txt
&lt;br&gt;touch: cannot touch `filetest.txt': Permission denied
&lt;br&gt;[lhorace@netsrv test2]$
&lt;br&gt;&lt;br&gt;On a regular filesystem folder, if I am the owner of the folder, I should be 
&lt;br&gt;able to create files within the folder. And reading the output correctly, it 
&lt;br&gt;seems that uid is the only thing that get's pass to the kernel.
&lt;br&gt;&lt;br&gt;Note: uid=500 = lhorace, and lhorace exists on bothsystems including 
&lt;br&gt;networkshares.
&lt;br&gt;&lt;br&gt;What am I doing wrong? Any hints/clues would be entirely appreciative thank 
&lt;br&gt;you.. =)
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26064712&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Hello-tp26064712p26064712.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26059494</id>
	<title>Re: Question on current stateofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T06:14:08Z</published>
	<updated>2009-10-26T06:14:08Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Volker,
&lt;br&gt;&lt;br&gt;ok, did the same grep as below, but this time for &amp;quot;crypt&amp;quot;. I now came
&lt;br&gt;accross a parameter named
&lt;br&gt;&lt;br&gt;smb encrypt
&lt;br&gt;&lt;br&gt;Is that the right one (from the smb.conf man page it seems to be)?
&lt;br&gt;Furthermore, &amp;quot;smb encrypt&amp;quot; seems to include *both* signing and
&lt;br&gt;encryption, so one &amp;quot;smb encrypt&amp;quot; is set to mandatory, &amp;quot;server signing
&lt;br&gt;= mandatory&amp;quot; should no longer be required, right?
&lt;br&gt;&lt;br&gt;Besides, why not rename &amp;quot;server signing&amp;quot; to &amp;quot;smb signing&amp;quot; for
&lt;br&gt;consistency (would also make it easier to grep for it)?
&lt;br&gt;&lt;br&gt;Greetings,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Holger
&lt;br&gt;&lt;br&gt;Volker Lendecke schrieb am Monday, den 26. October 2009:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Mon, Oct 26, 2009 at 10:56:42AM +0100, Holger Rauch wrote:
&lt;br&gt;&amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;gt; &amp;gt; &amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;&amp;gt; &amp;gt; signing *and* encryption, right?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; No.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Volker
&lt;/div&gt;--
&lt;/div&gt;=========================================
&lt;br&gt;Holger Rauch
&lt;br&gt;Entwicklung Anwendungs-Software
&lt;br&gt;Systemadministration UNIX
&lt;br&gt;&lt;br&gt;Tel.: +49 / 9131 / 877 - 141
&lt;br&gt;Fax: +49 / 9131 / 877 - 266
&lt;br&gt;Email: &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26059494&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Holger.Rauch@...&lt;/a&gt;
&lt;br&gt;=========================================
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26059494&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26059494/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26059494.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26058805</id>
	<title>Re: Question on current state	ofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T04:23:50Z</published>
	<updated>2009-10-26T04:23:50Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Mon, Oct 26, 2009 at 10:56:42AM +0100, Holger Rauch wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Volker,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Volker Lendecke schrieb am Friday, den 23. October 2009:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...]
&lt;br&gt;&amp;gt; &amp;gt; For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;&amp;gt; &amp;gt; no idea about mount.cifs.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; For mount.cifs, specifying sec=krb5i instead of sec=krb5 in my
&lt;br&gt;&amp;gt; automount map obviously worked. The file system was automounted as
&lt;br&gt;&amp;gt; expected.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;gt; &amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;gt; &amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;&amp;gt; signing *and* encryption, right?
&lt;/div&gt;&lt;br&gt;No.
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26058805&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26058805.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26056925</id>
	<title>Re: Question on current state ofsec=krb5*integration in cifs.ko</title>
	<published>2009-10-26T02:56:42Z</published>
	<updated>2009-10-26T02:56:42Z</updated>
	<author>
		<name>Holger Rauch-3</name>
	</author>
	<content type="html">Hi Volker,
&lt;br&gt;&lt;br&gt;Volker Lendecke schrieb am Friday, den 23. October 2009:
&lt;br&gt;&lt;br&gt;&amp;gt; [...]
&lt;br&gt;&amp;gt; For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;&amp;gt; no idea about mount.cifs.
&lt;br&gt;&lt;br&gt;For mount.cifs, specifying sec=krb5i instead of sec=krb5 in my
&lt;br&gt;automount map obviously worked. The file system was automounted as
&lt;br&gt;expected.
&lt;br&gt;&lt;br&gt;Does &amp;quot;server signing = mandatory&amp;quot; also include encryption? I did a
&lt;br&gt;&amp;quot;testparm - v | grep server&amp;quot; and additional option containing
&lt;br&gt;&amp;quot;encryption&amp;quot; was shown, so I guess &amp;quot;server signing&amp;quot; includes both
&lt;br&gt;signing *and* encryption, right?
&lt;br&gt;&lt;br&gt;Thanks for clarifying this &amp; kind regards,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Holger
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26056925&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26056925/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26056925.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26030194</id>
	<title>Re: Question on current state of	sec=krb5*integration in cifs.ko</title>
	<published>2009-10-23T10:13:38Z</published>
	<updated>2009-10-23T10:13:38Z</updated>
	<author>
		<name>Volker Lendecke</name>
	</author>
	<content type="html">On Fri, Oct 23, 2009 at 06:20:40PM +0200, Holger Rauch wrote:
&lt;br&gt;&amp;gt; Hi Volker,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I looked at
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://wiki.samba.org/index.php/UNIX_Extensions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://wiki.samba.org/index.php/UNIX_Extensions&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; but I couldn't find anything about SMB encryption. Do you have any
&lt;br&gt;&amp;gt; good links concerning both SMB signing and encryption (configuring it,
&lt;br&gt;&amp;gt; smb.conf options, etc.)?
&lt;br&gt;&lt;br&gt;For the server you would say &amp;quot;server signing = mandatory&amp;quot;,
&lt;br&gt;no idea about mount.cifs.
&lt;br&gt;&lt;br&gt;&amp;gt; Are they both part of Samba 3.2.5 (shipped with Debian Lenny) or would
&lt;br&gt;&amp;gt; I need a more recent version of Samba?
&lt;br&gt;&lt;br&gt;Samba 3.2.5 server-side does both signing and encryption.
&lt;br&gt;cifs.ko afaik only does signing, no encryption yet (this was
&lt;br&gt;the &amp;quot;Hint&amp;quot; part of my last mail :-))
&lt;br&gt;&lt;br&gt;Volker
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030194&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (204 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26030194/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26030194.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26030197</id>
	<title>Re: Question on current state of sec=krb5* integration in cifs.ko</title>
	<published>2009-10-23T10:13:19Z</published>
	<updated>2009-10-23T10:13:19Z</updated>
	<author>
		<name>Jeff Layton-2</name>
	</author>
	<content type="html">On Fri, 23 Oct 2009 18:30:25 +0200
&lt;br&gt;Holger Rauch &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;holger.rauch@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Hi Jeff,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Fri, 23 Oct 2009, Jeff Layton wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; [...] 
&lt;br&gt;&amp;gt; &amp;gt; Yes, much...
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; NFS (well, RPC actually) sends credentials with every call, so if you
&lt;br&gt;&amp;gt; &amp;gt; destroy the creds, then the client and server will tend to pick up on
&lt;br&gt;&amp;gt; &amp;gt; that fact rather quickly. With CIFS the credentials are just used to
&lt;br&gt;&amp;gt; &amp;gt; establish a &amp;quot;session&amp;quot;. After that, krb5 doesn't really come into play
&lt;br&gt;&amp;gt; &amp;gt; very much (at least until you have to reconnect).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Well, that surely explains the &amp;quot;kdestroy&amp;quot; thing, but the other
&lt;br&gt;&amp;gt; interesting question is what software is actually meant by &amp;quot;server&amp;quot;
&lt;br&gt;&amp;gt; in case the log message reads similar to &amp;quot;server doesn't support signing&amp;quot;?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Any details for me on this one?
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;/div&gt;Sorry, it's a little difficult to be more specific...
&lt;br&gt;&lt;br&gt;It depends on what you're kind of server you're mounting here. If it's
&lt;br&gt;windows, then you'll probably need to play with its settings. If you're
&lt;br&gt;mounting samba, you probably need to set samba options to enable
&lt;br&gt;signing. If something else...who knows?
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Jeff Layton &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jlayton@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;_______________________________________________
&lt;br&gt;linux-cifs-client mailing list
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26030197&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;linux-cifs-client@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.samba.org/mailman/listinfo/linux-cifs-client&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.samba.org/mailman/listinfo/linux-cifs-client&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;signature.asc&lt;/strong&gt; (205 bytes) &lt;a href=&quot;http://old.nabble.com/attachment/26030197/0/signature.asc&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-current-state-of-sec%3Dkrb5*-integration-in-cifs.ko-tp25998453p26030197.html" />
</entry>

</feed>
