All of lore.kernel.org
 help / color / mirror / Atom feed
* Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
@ 2013-12-18 13:10 Philipp Flesch
  2013-12-18 16:43 ` Jeff Layton
  2013-12-18 16:51 ` Steve French
  0 siblings, 2 replies; 6+ messages in thread
From: Philipp Flesch @ 2013-12-18 13:10 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

Hi from Munich,
we have some special issues with the current cifs-utils (5.5) in 
Debian Wheezy.

A lot of our (raw) logfiles are stored on a Windows 2008 R2 
fileserver, while we use Debian to generate the reports.

The share is available as
\\fs01\Share

while the logfiles can be found in special subdirs
DepartmentA\Stats

We use a seperate user "stats_user" to access the files. This user has 
no "listing-rights“ above the final "\Stats" directory.

Using Windows 7, everything works fine...
\\fs01\Share\DepartmentA\Stats can be directly mounted to an local 
drive...

Using cifs-utils (4.5) in Squeeze everything works fine, too!
mount -t cifs //fs01/Share/DepartmentA/stats /mnt/DepartmentA_stats -o 
user=stats_user,domain=xy,password='xyz'
makes all files accessible from Debian.

Using the same mount-command with the same user, we got a "permission 
denied".
Retrying with a default-user (with listing-rights) the subdirectory is 
mounted without any errors...

Are there any big changes between 4.5 and 5.5 which can cause this 
error? Is there a solution, to avoid the issue?

Thank you very much

Philipp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
  2013-12-18 13:10 Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5? Philipp Flesch
@ 2013-12-18 16:43 ` Jeff Layton
       [not found]   ` <20131218114326.7f719964-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
  2013-12-18 16:51 ` Steve French
  1 sibling, 1 reply; 6+ messages in thread
From: Jeff Layton @ 2013-12-18 16:43 UTC (permalink / raw)
  To: Philipp Flesch; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA

On Wed, 18 Dec 2013 14:10:17 +0100
Philipp Flesch <philipp-3cc/OM5pcIkb1SvskN2V4Q@public.gmane.org> wrote:

> Hi from Munich,
> we have some special issues with the current cifs-utils (5.5) in 
> Debian Wheezy.
> 
> A lot of our (raw) logfiles are stored on a Windows 2008 R2 
> fileserver, while we use Debian to generate the reports.
> 
> The share is available as
> \\fs01\Share
> 
> while the logfiles can be found in special subdirs
> DepartmentA\Stats
> 
> We use a seperate user "stats_user" to access the files. This user has 
> no "listing-rights“ above the final "\Stats" directory.
> 
> Using Windows 7, everything works fine...
> \\fs01\Share\DepartmentA\Stats can be directly mounted to an local 
> drive...
> 
> Using cifs-utils (4.5) in Squeeze everything works fine, too!
> mount -t cifs //fs01/Share/DepartmentA/stats /mnt/DepartmentA_stats -o 
> user=stats_user,domain=xy,password='xyz'
> makes all files accessible from Debian.
> 
> Using the same mount-command with the same user, we got a "permission 
> denied".
> Retrying with a default-user (with listing-rights) the subdirectory is 
> mounted without any errors...
> 
> Are there any big changes between 4.5 and 5.5 which can cause this 
> error? Is there a solution, to avoid the issue?
> 
> Thank you very much
> 
> Philipp
> 

More likely, a change to the kernel and not cifs-utils is causing this
for you. What kernels do your working and non-working configs have?
Does it work if you mount with sec=ntlm ?

-- 
Jeff Layton <jlayton-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
  2013-12-18 13:10 Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5? Philipp Flesch
  2013-12-18 16:43 ` Jeff Layton
@ 2013-12-18 16:51 ` Steve French
       [not found]   ` <CAH2r5mv3yChbfKm0QBBZ=LymBx7Ssw6J_RmVMZQ1LJ8uDjLBuA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Steve French @ 2013-12-18 16:51 UTC (permalink / raw)
  To: Philipp Flesch; +Cc: linux-cifs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org

I doubt that the sec=ntlm would make much of a difference but would be
interesting to see what the access denied is coming back on - since
from what you describe listing the contents of the root directory of
the share should be permitted to both users so this is not an access
denied on top of prefixpath issue as we had seen a few years ago.

On Wed, Dec 18, 2013 at 7:10 AM, Philipp Flesch <philipp-3cc/OM5pcIkb1SvskN2V4Q@public.gmane.org> wrote:
> Hi from Munich,
> we have some special issues with the current cifs-utils (5.5) in Debian
> Wheezy.
>
> A lot of our (raw) logfiles are stored on a Windows 2008 R2 fileserver,
> while we use Debian to generate the reports.
>
> The share is available as
> \\fs01\Share
>
> while the logfiles can be found in special subdirs
> DepartmentA\Stats
>
> We use a seperate user "stats_user" to access the files. This user has no
> "listing-rights“ above the final "\Stats" directory.
>
> Using Windows 7, everything works fine...
> \\fs01\Share\DepartmentA\Stats can be directly mounted to an local drive...
>
> Using cifs-utils (4.5) in Squeeze everything works fine, too!
> mount -t cifs //fs01/Share/DepartmentA/stats /mnt/DepartmentA_stats -o
> user=stats_user,domain=xy,password='xyz'
> makes all files accessible from Debian.
>
> Using the same mount-command with the same user, we got a "permission
> denied".
> Retrying with a default-user (with listing-rights) the subdirectory is
> mounted without any errors...
>
> Are there any big changes between 4.5 and 5.5 which can cause this error? Is
> there a solution, to avoid the issue?
>
> Thank you very much
>
> Philipp
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-cifs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Thanks,

Steve

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
       [not found]   ` <20131218114326.7f719964-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
@ 2013-12-18 17:39     ` Philipp Flesch
       [not found]       ` <52B1DDB7.3070909-3cc/OM5pcIkb1SvskN2V4Q@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: Philipp Flesch @ 2013-12-18 17:39 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

Hi Jeff,
> More likely, a change to the kernel and not cifs-utils is causing this
> for you. What kernels do your working and non-working configs have?
(working) squeeze --> 2.6.32-5-686-bigmem
(non-working) wheezy --> 3.2.0-4-686-pae

> Does it work if you mount with sec=ntlm ?
>
sec causes same error ...


Greetings

Philipp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
       [not found]   ` <CAH2r5mv3yChbfKm0QBBZ=LymBx7Ssw6J_RmVMZQ1LJ8uDjLBuA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-18 17:43     ` Philipp Flesch
  0 siblings, 0 replies; 6+ messages in thread
From: Philipp Flesch @ 2013-12-18 17:43 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA; +Cc: Steve French

Hi Steve,

Am 18.12.2013 17:51, schrieb Steve French:
> I doubt that the sec=ntlm would make much of a difference but would be
> interesting to see what the access denied is coming back on - since
> from what you describe listing the contents of the root directory of
> the share should be permitted to both users so this is not an access
> denied on top of prefixpath issue as we had seen a few years ago.
Sorry, but perhaps I described the share-configuration not exact enough.
listing the contents is only allowed in the final (second) subdirectory, 
but not in the root of the share and not in the first subdirectory:

no    listing allowed        \\fs01\Share
no    listing allowed         \\fs01\Share\DepartmentA
         listing allowed         \\fs01\Share\DepartmentA\Stats

Greetings

Philipp

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5?
       [not found]       ` <52B1DDB7.3070909-3cc/OM5pcIkb1SvskN2V4Q@public.gmane.org>
@ 2014-01-16  8:39         ` Pierre Frenkiel
  0 siblings, 0 replies; 6+ messages in thread
From: Pierre Frenkiel @ 2014-01-16  8:39 UTC (permalink / raw)
  To: linux-cifs-u79uwXL29TY76Z2rM5mHXA

On Wed, 18 Dec 2013, Philipp Flesch wrote:

> Hi Jeff,
>> More likely, a change to the kernel and not cifs-utils is causing this
>> for you. What kernels do your working and non-working configs have?
> (working) squeeze --> 2.6.32-5-686-bigmem
> (non-working) wheezy --> 3.2.0-4-686-pae
>
>> Does it work if you mount with sec=ntlm ?
>> 
> sec causes same error ...

   hi,
   I just see this mail now, coming back home...
   I had a similar problem when kernel change from 3.2 to 3.10.
   and found that the 3 following commands work:

      mount -t cifs -o sec=none //wehd/hdd /d6
      mount -t cifs -o "guest,sec=ntlm" //wehd/hdd /d6
      mount -t cifs -o "guest,sec=ntlmv2" //wehd/hdd /d6

best regards,
-- 
Pierre Frenkiel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-01-16  8:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 13:10 Mounting error after upgrading to wheezy - Changes in mount.cifs from 4.5 to 5.5? Philipp Flesch
2013-12-18 16:43 ` Jeff Layton
     [not found]   ` <20131218114326.7f719964-4QP7MXygkU+dMjc06nkz3ljfA9RmPOcC@public.gmane.org>
2013-12-18 17:39     ` Philipp Flesch
     [not found]       ` <52B1DDB7.3070909-3cc/OM5pcIkb1SvskN2V4Q@public.gmane.org>
2014-01-16  8:39         ` Pierre Frenkiel
2013-12-18 16:51 ` Steve French
     [not found]   ` <CAH2r5mv3yChbfKm0QBBZ=LymBx7Ssw6J_RmVMZQ1LJ8uDjLBuA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-12-18 17:43     ` Philipp Flesch

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.