Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mount -t cifs works on one version of linux but not another [closed]

I have a raspberry pi that I am trying to mount a remote samba share on, but I get permission denied. On another mounting the same share with th same command works.

Raspberry pi:

root@xbian:~# mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
root@xbian:~# uname -a
Linux xbian 3.9.8+ #2 PREEMPT Tue Jul 2 17:38:12 CEST 2013 armv6l GNU/Linux

Ubuntu:

root@dakLinux:~#  mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321
root@dakLinux:~# uname -a
Linux dakLinux 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009 i686 i686 i686 GNU/Linux

Is this a kernel issue or a linux version issue? Is there a way to make this work?

like image 612
Dennis Kerrisk Avatar asked Apr 06 '26 07:04

Dennis Kerrisk


1 Answers

use sec=ntlm in the options

Kernel versions post 3.8.x have this changed, and mount.cifs doesn't pass this argument, explicitly, Hence fails

Refer: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=81bcd8b795229c70d7244898efe282846e3b14ce

mount -t cifs //192.168.249.72/root /media/SS -o username=root,password=654321,sec=ntlm

and it should work

like image 67
Sundeep471 Avatar answered Apr 08 '26 23:04

Sundeep471



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!