Bug#403700: smbfs: mount.cifs fails as normal user
IMHO if a mount point is defined as user mountable in fstab it should be user mountable, given that the user has write permission on mount point. In any case the error message is highly misleading. HTH, gianpaolo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#403700: smbfs: mount.cifs fails as normal user
the faulty line here : if((statbuf.st_uid == getuid()) patch attached On Tuesday 19 December, 2006 � 06:37:59AM +0100, Christian Perrier wrote: Quoting juan ([EMAIL PROTECTED]): Package: smbfs Version: 3.0.23d-2+b1 Severity: normal mount.cifs //dozo/myshare /mnt/ -o guest mount error: permission denied or not superuser and mount.cifs not installed SUID $ ls -l /sbin/*cifs -rwsr-xr-x 1 root root 20440 Dec 4 19:09 /sbin/mount.cifs* -rwsr-xr-x 1 root root Dec 4 19:09 /sbin/umount.cifs* Well: [EMAIL PROTECTED]:~/tmp mount.cifs //localhost/public ~/tmp/tmp-samba -o bubulle Password: [EMAIL PROTECTED]:~/tmp [EMAIL PROTECTED]:~ ls -l /sbin/*cifs -rwsr-xr-x 1 root root 20440 2006-12-04 19:09 /sbin/mount.cifs -rwsr-xr-x 1 root root 2006-12-04 19:09 /sbin/umount.cifs Probably something else than samba directly *** mount.cifs.c.orig Tue Dec 19 11:47:33 2006 --- mount.cifs.c Tue Dec 19 11:47:40 2006 *** *** 815,821 } if((getuid() != 0) (geteuid() == 0)) { ! if((statbuf.st_uid == getuid()) (S_IRWXU == (statbuf.st_mode S_IRWXU))) { #ifndef CIFS_ALLOW_USR_SUID /* Do not allow user mounts to control suid flag for mount unless explicitly built that way */ --- 815,821 } if((getuid() != 0) (geteuid() == 0)) { ! if((S_IRWXU == (statbuf.st_mode S_IRWXU))) { #ifndef CIFS_ALLOW_USR_SUID /* Do not allow user mounts to control suid flag for mount unless explicitly built that way */
Bug#403700: smbfs: mount.cifs fails as normal user
Package: smbfs Version: 3.0.23d-2+b1 Severity: normal mount.cifs //dozo/myshare /mnt/ -o guest mount error: permission denied or not superuser and mount.cifs not installed SUID $ ls -l /sbin/*cifs -rwsr-xr-x 1 root root 20440 Dec 4 19:09 /sbin/mount.cifs* -rwsr-xr-x 1 root root Dec 4 19:09 /sbin/umount.cifs* -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (990, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.19 Locale: LANG=POSIX, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Versions of packages smbfs depends on: ii libc62.3.6.ds1-9 GNU C Library: Shared libraries ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-1 common error description library ii libkrb53 1.4.4-5 MIT Kerberos runtime libraries ii libldap2 2.1.30-13.2 OpenLDAP libraries ii netbase 4.27Basic TCP/IP networking system ii samba-co 3.0.23d-2+b1Samba 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]
Bug#403700: smbfs: mount.cifs fails as normal user
Quoting juan ([EMAIL PROTECTED]): Package: smbfs Version: 3.0.23d-2+b1 Severity: normal mount.cifs //dozo/myshare /mnt/ -o guest mount error: permission denied or not superuser and mount.cifs not installed SUID $ ls -l /sbin/*cifs -rwsr-xr-x 1 root root 20440 Dec 4 19:09 /sbin/mount.cifs* -rwsr-xr-x 1 root root Dec 4 19:09 /sbin/umount.cifs* Well: [EMAIL PROTECTED]:~/tmp mount.cifs //localhost/public ~/tmp/tmp-samba -o bubulle Password: [EMAIL PROTECTED]:~/tmp [EMAIL PROTECTED]:~ ls -l /sbin/*cifs -rwsr-xr-x 1 root root 20440 2006-12-04 19:09 /sbin/mount.cifs -rwsr-xr-x 1 root root 2006-12-04 19:09 /sbin/umount.cifs Probably something else than samba directly signature.asc Description: Digital signature