Package: smbfs
Version: 3.0.14a-3
Severity: important

Hi!

I tried to do homedir automounting through CIFS
protocol. It's pretty obvious SMB isn't approproiate
for this task, although first I tried libpam-mount/SMB
and it worked. CIFS didn't. For the same account, of
course.

As it turned out the source of problem is difference in
password processing between mount.smbfs and mount.cifs.
It seems that the latter mistreats passwords containing
comma (as was in my case), and probably some other
non-alnum characters too.

Here's an example:

1. adding test user:
penguin:~# adduser --gecos '' --disabled-password luser
Adding user `luser'...
Adding new group `luser' (1021).
Adding new user `luser' (1021) with group `luser'.
Creating home directory `/home/luser'.
Copying files from `/etc/skel'

2. setting SAMBA password containing comma:
penguin:~# smbpasswd -a luser
New SMB password: luser,r
Retype new SMB password: luser,r
Added user luser.

3. mount through SMB at remote side:
vespasian:~# mount.smbfs //penguin/luser /mnt -o username=luser
Password: luser,r
vespasian:~# ls -A /mnt/
.alias  .bash_profile  .bashrc  .cshrc  .kde  .vim  .vimrc  .Xresources  .zshrc

4. mount through CIFS at remote side:
vespasian:~# mount.cifs //penguin/luser /mnt -o user=luser
Password: luser,r
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

:-/

5. of course, I checked SAMBA logs:
[2005/07/20 15:59:53, 3] libsmb/ntlm_check.c:ntlm_password_check(344)
  ntlm_password_check: NT MD4 password check failed for user luser
...
[2005/07/20 15:59:53, 5] auth/auth.c:check_ntlm_password(271)
  check_ntlm_password: sam authentication for user [luser] FAILED with error 
NT_STATUS_WRONG_PASSWORD
[2005/07/20 15:59:53, 2] auth/auth.c:check_ntlm_password(312)
  check_ntlm_password:  Authentication for user [luser] -> [luser] FAILED with 
error NT_STATUS_WRONG_PASSWORD

Here you can plain see that password used by mount.cifs
simply _doesn't_ _match_.
6. What should be there instead is:
check_ntlm_password: sam authentication for user [luser] succeeded

Period.

--
WBR,
xrgtn

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
APT policy: (990, 'testing'), (501, 'warty'), (501, 'unstable'), (500, 'oldstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-grsec
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages smbfs depends on:
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an ii libcomerr2 1.37-2sarge1 common error description library ii libkrb53 1.3.6-3 MIT Kerberos runtime libraries ii libldap2 2.1.30-11 OpenLDAP libraries ii netbase 4.21 Basic TCP/IP networking system ii samba-common 3.0.14a-3 Samba common files used by both th

smbfs recommends no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to