Discussion:
permission denied on cifs mount
Pierre Frenkiel
2013-12-15 09:33:28 UTC
Permalink
hi everybody
I try to mount an external disk which has a wifi network interface, and
behaves as a cifs server: it fails on my desktop, and works on 2 other
computers. All are running Debian/Wheezy

On 2 laptops, the following command works fine:

->mount -t cifs -o guest //wehd/hdd /d6

On my desktop, where it used to work until last month , I get now:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

I'm unable to explain this difference of behaviours.
Can anybody help me?

best regards,

PS: I also did the same post to the cifs-protocol list. I don't know
which list is best suited for this problem...
steve
2013-12-15 15:45:10 UTC
Permalink
Post by Pierre Frenkiel
hi everybody
I try to mount an external disk which has a wifi network interface, and
behaves as a cifs server: it fails on my desktop, and works on 2 other
computers. All are running Debian/Wheezy
->mount -t cifs -o guest //wehd/hdd /d6
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I'm unable to explain this difference of behaviours.
Can anybody help me?
best regards,
PS: I also did the same post to the cifs-protocol list. I don't know
which list is best suited for this problem...
Hi
The answer is in /var/log/syslog just before the error message.

Are you allowed access to the log?
HTH
Steve
Pierre Frenkiel
2013-12-15 18:22:27 UTC
Permalink
Post by steve
The answer is in /var/log/syslog just before the error message.
hi Steve,
sorry, but the syslog content is as useful as the mount error message -:)

kernel: [695979.217883] CIFS VFS: Send error in SessSetup = -13
kernel: [695979.218014] CIFS VFS: cifs_mount failed w/return code = -13

Fortunately, I found the answer by looking for all the options
in the mount.cifs man. The one which worked was "sec=none", i.e.

mount -t cifs -o sec=none //wehd/hdd /d6

I tried the other possible values for sec, and found that

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

also work.

At last, I discovered that the difference from my 2 other machines
comes from the kernel versions. My curent kernel version is 3.10-3,
but if I boot the same machine selecting kernel 3.2, the command

mount -t cifs -o guest //wehd/hdd /d6

works.

That obviously means that they changed the default
security mode for cifs in the new kernel, although I found nothing
about that in the kernel changelog.

best regards,
--
Pierre Frenkiel
Loading...