Page 1 of 1

cifs-utils in squeeze v. wheezy/LMDE

Posted: Thu Dec 15, 2011 2:22 pm
by bigbenaugust
Not sure whether to go to the Debian forums or here, but I am indeed stumped by this one.

The following command:

Code: Select all

sudo mount.cifs //server-name/share\$ /mnt/share -o rw,user=username,pass=hahahaha,dom=WIN,uid=username,gid=groupname,sec=ntlmv2,iocharset=utf8
Just Works on a freshly installed Debian Squeeze box. Install Squeeze, install cifs-utils, create mount point, run above command. (cifs-utils version is 4.5-2 in squeeze)

But in LMDE, I run the exact same command and get the following:

Code: Select all

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
(cifs-utils version in wheezy is 5.1-2)

I've tried configuring winbind, using the FQDN for the server and various permutations of the server and share name.

Does anyone know what changed in mount.cifs?

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Thu Dec 15, 2011 2:57 pm
by altair4
Instead of "sudo mount.cifs ..." try "sudo mount -t cifs ....."

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Thu Dec 15, 2011 3:21 pm
by bigbenaugust
Same deal. Works in Squeeze, fails with same error in Wheezy/LMDE.

Also, the verbose option to mount.cifs is unhelpful.

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Thu Dec 15, 2011 3:26 pm
by bigbenaugust
I even tried downgrading the package in LMDE to the Squeeze version. This leads me to believe that a dependency somewhere is malfunctioning.

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Sun Feb 26, 2012 11:59 pm
by blink4blog
Sorry if I been hijacking this post but just want to stress that using "mount -t cifs ..." will crash the entire system and a force shutdown is required.

Been using default repos and uname -a:

3.0.0-1-amd64 #1 SMP x86_64 GNU/Linux

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Fri Aug 17, 2012 1:03 am
by bigbenaugust
I will answer my own question 9 months later. :mrgreen:

Using

Code: Select all

sec=ntlmssp

instead of

Code: Select all

sec=ntlmv2
solved the problem and also enabled me to connect to our shiny new WS2008R2 server.

This option (to use the NT LanMan Secure Session Protocol) is (or was last I checked in May-ish) missing from the man page and most documentation. Maybe someone else will find this useful.

Re: cifs-utils in squeeze v. wheezy/LMDE

Posted: Wed Oct 31, 2012 12:24 pm
by dovido
bigbenaugust wrote:I will answer my own question 9 months later. :mrgreen:

Using

Code: Select all

sec=ntlmssp

instead of

Code: Select all

sec=ntlmv2
solved the problem and also enabled me to connect to our shiny new WS2008R2 server.

This option (to use the NT LanMan Secure Session Protocol) is (or was last I checked in May-ish) missing from the man page and most documentation. Maybe someone else will find this useful.
Thanks bigbenaugust, it worked for me!