cifs-utils in squeeze v. wheezy/LMDE

Archived topics about LMDE 1 and LMDE 2
Locked
bigbenaugust

cifs-utils in squeeze v. wheezy/LMDE

Post 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?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
altair4
Level 20
Level 20
Posts: 11427
Joined: Tue Feb 03, 2009 10:27 am

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

Post by altair4 »

Instead of "sudo mount.cifs ..." try "sudo mount -t cifs ....."
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
bigbenaugust

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

Post by bigbenaugust »

Same deal. Works in Squeeze, fails with same error in Wheezy/LMDE.

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

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

Post 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.
blink4blog

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

Post 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
bigbenaugust

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

Post 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.
dovido

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

Post 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!
Locked

Return to “LMDE Archive”