[Pkg-samba-maint] Bug#423971: cifs: -o guest yields root login

Christian Perrier bubulle at debian.org
Tue May 15 16:51:54 UTC 2007


Quoting martin f krafft (madduck at debian.org):
> Package: smbfs
> Version: 3.0.24-6
> Severity: normal
> File: /sbin/mount.cifs
> 
> I cannot mount cifs as guest:
> 
>   piper:~# mount -t cifs -o guest //wall/pub /mnt --verbose
>   parsing options: rw,guest
> 
>   mount.cifs kernel mount options unc=//wall\pub,ip=192.168.14.1,user=root,ver=1,rw 
>   mount error 13 = Permission denied
> 
> see the user=root. The server logs at debuglevel 3 also show that
> it's root trying to log in.
> 
>   [2007/05/15 00:20:07, 3] smbd/sesssetup.c:reply_sesssetup_and_X(1010)
>     sesssetupX:name=[CIFS_LINUX_DOM]\[root]@[192.168.14.3]


What about using the option as suggested in the man page:

mount -t cifs -o user=guest //wall/pub /mnt --verbose

Actually, mount.cifs could maybe give a more explicit warning about
"-o user" not being supported.

To be more complete:

root at mykerinos:~> mount -t cifs -o user=spongebob //localhost/public /mnt
Password:
root at mykerinos:~> umount /mnt
root at mykerinos:~> mount -t smbfs -o user=spongebob //localhost/public /mnt
Password:
20678: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed
root at mykerinos:~> mount -t smbfs -o username=spongebob //localhost/public /mnt
Password:
root at mykerinos:~> umount /mnt


mount.cifs supports "-o user=foo" while mount.smbfs doesn't and
requires "-o username=foo"

As far as I know "-o foo" does not work with mount.smbfs either:

root at mykerinos:~> mount -t smbfs -o spongebob //localhost/public /mnt
Password:
20700: tree connect failed: ERRDOS - ERRnoaccess (Access denied.)
SMB connection failed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070515/eb94ce9d/attachment.pgp 


More information about the Pkg-samba-maint mailing list