Report forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris):
Bug#88933; Package smbfs.   debian-bugs-dist@lists.debian.orgpeloy@debian.org (Eloy A. Paris)  Subject: Bug#88933: options noauto and user cause an error message Reply-To: Kilian Koepsell , 88933@bugs.debian.org Resent-From: Kilian Koepsell Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: peloy@debian.org (Eloy A. Paris) Resent-Date: Thu, 08 Mar 2001 15:03:30 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 88933 X-Debian-PR-Package: smbfs X-Debian-PR-Keywords: X-Loop: owner@bugs.debian.org Received: via spool by bugs@bugs.debian.org id=B.98406330419946 (code B ref -1); Thu, 08 Mar 2001 15:03:30 GMT To: submit@bugs.debian.org Cc: kilian@koepsell.de From: Kilian Koepsell X-Mailer: bug-buddy 1.2 Message-Id: Date: Thu, 08 Mar 2001 15:55:00 +0100 Delivered-To: submit@bugs.debian.org Package: smbfs Severity: normal Version: 2.0.7-4 Synopsis: options noauto and user cause an error message Class: sw-bug Distribution: Debian testing/unstable System: Linux 2.4.0 i686 unknown Description: i want to include the information for a windows share in my fstab file, but i don't want to mount it automatically. for other filesystem types this works with the option 'noauto'. furthermore i would like to be able to mount the share as non-root. for other filsystem types this works with the option 'user'. both options cause an error message: ------------------------------------------ /etc/fstab: //r2d2/labor /mnt/r2d2 smbfs rw,noauto,username=kilian error message: smbfs: Unrecognized mount option noauto actually, i just found out, that the error message does only appear on the console, not in a x-terminal. the mounting succeeds, anyway.   Acknowledgement sent to Kilian Koepsell <kilian@koepsell.de>:
New Bug report received and forwarded. Copy sent to peloy@debian.org (Eloy A. Paris).   -t  From: owner@bugs.debian.org (Debian Bug Tracking System) To: Kilian Koepsell Subject: Bug#88933: Acknowledgement (options noauto and user cause an error message) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack 88933 Thank you for the problem report you have sent regarding Debian. This is an automatically generated reply, to let you know your message has been received. It is being forwarded to the developers mailing list for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): peloy@debian.org (Eloy A. Paris) If you wish to submit further information on your problem, please send it to 88933@bugs.debian.org (and *not* to bugs@bugs.debian.org). Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Darren Benham (administrator, Debian Bugs database)   Received: (at submit) by bugs.debian.org; 8 Mar 2001 14:55:04 +0000 From kilian@koepsell.de Thu Mar 08 08:55:04 2001 Return-path: Received: from dialin4.aei-potsdam.mpg.de (chebang) [::ffff:194.94.224.233] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14b1ok-0005BJ-00; Thu, 08 Mar 2001 08:55:03 -0600 Received: from kilian by chebang with local (Exim 3.20 #1 (Debian)) id 14b1oi-0000UM-00; Thu, 08 Mar 2001 15:55:00 +0100 To: submit@bugs.debian.org Cc: kilian@koepsell.de From: Kilian Koepsell Subject: options noauto and user cause an error message X-Mailer: bug-buddy 1.2 Message-Id: Date: Thu, 08 Mar 2001 15:55:00 +0100 Delivered-To: submit@bugs.debian.org Package: smbfs Severity: normal Version: 2.0.7-4 Synopsis: options noauto and user cause an error message Class: sw-bug Distribution: Debian testing/unstable System: Linux 2.4.0 i686 unknown Description: i want to include the information for a windows share in my fstab file, but i don't want to mount it automatically. for other filesystem types this works with the option 'noauto'. furthermore i would like to be able to mount the share as non-root. for other filsystem types this works with the option 'user'. both options cause an error message: ------------------------------------------ /etc/fstab: //r2d2/labor /mnt/r2d2 smbfs rw,noauto,username=kilian error message: smbfs: Unrecognized mount option noauto actually, i just found out, that the error message does only appear on the console, not in a x-terminal. the mounting succeeds, anyway.   Merged 59987 88933. Request was from Steve Langasek <vorlon@netexpress.net> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 19 Jan 2002 18:00:27 +0000 From vorlon@netexpress.net Sat Jan 19 12:00:27 2002 Return-path: Received: from minbar.dodds.net [64.22.202.18] (postfix) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 16Rzn1-0002Dd-00; Sat, 19 Jan 2002 12:00:27 -0600 Received: by minbar.dodds.net (Postfix, from userid 1000) id B22D7F5B3; Sat, 19 Jan 2002 12:00:26 -0600 (CST) Date: Sat, 19 Jan 2002 12:00:26 -0600 From: Steve Langasek To: control@bugs.debian.org Subject: forwarded upstream. Message-ID: <20020119180025.GA21194@dodds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Delivered-To: control@bugs.debian.org merge 59987 88933 forwarded 59987 urban@teststation.com thanks Urban has stated that he intends to redesign the smbmount/smbmnt programs to integrate better with /bin/mount and existing standardized mount options.   Noted your statement that Bug has been forwarded to urban@teststation.com. Request was from Steve Langasek <vorlon@netexpress.net> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 19 Jan 2002 18:00:27 +0000 From vorlon@netexpress.net Sat Jan 19 12:00:27 2002 Return-path: Received: from minbar.dodds.net [64.22.202.18] (postfix) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 16Rzn1-0002Dd-00; Sat, 19 Jan 2002 12:00:27 -0600 Received: by minbar.dodds.net (Postfix, from userid 1000) id B22D7F5B3; Sat, 19 Jan 2002 12:00:26 -0600 (CST) Date: Sat, 19 Jan 2002 12:00:26 -0600 From: Steve Langasek To: control@bugs.debian.org Subject: forwarded upstream. Message-ID: <20020119180025.GA21194@dodds.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.25i Delivered-To: control@bugs.debian.org merge 59987 88933 forwarded 59987 urban@teststation.com thanks Urban has stated that he intends to redesign the smbmount/smbmnt programs to integrate better with /bin/mount and existing standardized mount options.   Information forwarded to debian-bugs-dist@lists.debian.org, Toby Speight <streapadair@gmx.net>, peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org:
Bug#88933; Package smbfs.   debian-bugs-dist@lists.debian.orgToby Speight peloy@debian.org (Eloy A. Paris)samba@packages.qa.debian.org  X-Loop: owner@bugs.debian.org Subject: Bug#88933: options noauto and user cause an error message Reply-To: Toby Speight , 88933@bugs.debian.org Resent-From: Toby Speight Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: Toby Speight , peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org Resent-Date: Thu, 08 Aug 2002 15:48:11 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 88933 X-Debian-PR-Package: smbfs X-Debian-PR-Keywords: Received: via spool by 88933-submit@bugs.debian.org id=B88933.102882087221846 (code B ref 88933); Thu, 08 Aug 2002 15:48:11 GMT From: Toby Speight To: Kilian Koepsell , 88933@bugs.debian.org References: Date: 08 Aug 2002 16:34:16 +0100 Message-ID: Lines: 20 Organization: Citrix Systems User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Face: wqk-$Z5Z X-Message-Flag: Save the bales! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Delivered-To: 88933@bugs.debian.org 0> In article , 0> Kilian Koepsell ("Kilian") wrote: Kilian> Description: i want to include the information for a windows share Kilian> in my fstab file, but i don't want to mount it automatically. for Kilian> other filesystem types this works with the option 'noauto'. Kilian> Kilian> furthermore i would like to be able to mount the share as Kilian> non-root. for other filsystem types this works with the option Kilian> 'user'. Kilian> Kilian> both options cause an error message: I don't use 'noauto', but I do use 'user' - and I get a different syslog message: smbfs: Unrecognized mount option noexec The mount succeeds, but the message is annoying.   Acknowledgement sent to Toby Speight <streapadair@gmx.net>:
Extra info received and forwarded to list. Copy sent to Toby Speight <streapadair@gmx.net>, peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Toby Speight Subject: Bug#88933: Info received (was Bug#88933: options noauto and user cause an error message) Message-ID: In-Reply-To: References: X-Debian-PR-Message: ack-info 88933 X-Reply-To-disabled-by-doogie-because-it-can-wreak-havoc: 88933@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. As you requested using X-Debbugs-CC, your message was also forwarded to Toby Speight (after having been given a Bug report number, if it did not have one). Your message has been sent to the package maintainer(s): peloy@debian.org (Eloy A. Paris) If you wish to continue to submit further information on your problem, please send it to 88933@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 88933) by bugs.debian.org; 8 Aug 2002 15:34:32 +0000 From streapadair@gmx.net Thu Aug 08 10:34:32 2002 Return-path: Received: from gatekeeper.ctxuk.citrix.com [195.153.38.114] (root) by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 17cpJ1-0005fK-00; Thu, 08 Aug 2002 10:34:31 -0500 Received: from sh.ctxuk.citrix.com (sh.ctxuk.citrix.com [10.30.224.4]) by gatekeeper.ctxuk.citrix.com (8.8.7/BSCF-1.7) with ESMTP id QAA21182; Thu, 8 Aug 2002 16:34:28 +0100 (BST) Received: from uk1mailscan01 (uk1mailscan01.ctxuk.citrix.com [10.30.224.37]) by sh.ctxuk.citrix.com (8.8.7/BSCF-1.7) with SMTP id QAA27117; Thu, 8 Aug 2002 16:34:27 +0100 (BST) Received: from 10.30.224.101 by uk1mailscan01 (InterScan E-Mail VirusWall NT); Thu, 08 Aug 2002 16:34:27 +0100 Received: by hwexch01.ctxuk.citrix.com with Internet Mail Service (5.5.2653.19) id ; Thu, 8 Aug 2002 16:34:26 +0100 Received: from suilven.cam.eu.citrix.com ([10.70.128.164]) by hwexch01.ctxuk.citrix.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id P2TB5H7H; Thu, 8 Aug 2002 16:34:17 +0100 From: Toby Speight To: Kilian Koepsell , 88933@bugs.debian.org Subject: Re: Bug#88933: options noauto and user cause an error message X-Debbugs-CC: Toby Speight References: Date: 08 Aug 2002 16:34:16 +0100 Message-ID: Lines: 20 Organization: Citrix Systems User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 X-Face: wqk-$Z5Z X-Message-Flag: Save the bales! MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Delivered-To: 88933@bugs.debian.org 0> In article , 0> Kilian Koepsell ("Kilian") wrote: Kilian> Description: i want to include the information for a windows share Kilian> in my fstab file, but i don't want to mount it automatically. for Kilian> other filesystem types this works with the option 'noauto'. Kilian> Kilian> furthermore i would like to be able to mount the share as Kilian> non-root. for other filsystem types this works with the option Kilian> 'user'. Kilian> Kilian> both options cause an error message: I don't use 'noauto', but I do use 'user' - and I get a different syslog message: smbfs: Unrecognized mount option noexec The mount succeeds, but the message is annoying.   Information forwarded to debian-bugs-dist@lists.debian.org, peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org:
Bug#88933; Package smbfs.   debian-bugs-dist@lists.debian.orgpeloy@debian.org (Eloy A. Paris)samba@packages.qa.debian.org  X-Loop: owner@bugs.debian.org Subject: Bug#88933: smbfs specific options are discarded when using user, users or noauto options in fstab. Reply-To: reno , 88933@bugs.debian.org Resent-From: reno Original-Sender: renard Resent-To: debian-bugs-dist@lists.debian.org Resent-CC: peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org Resent-Date: Fri, 01 Nov 2002 21:33:03 GMT Resent-Message-ID: Resent-Sender: owner@bugs.debian.org X-Debian-PR-Message: report 88933 X-Debian-PR-Package: smbfs X-Debian-PR-Keywords: Received: via spool by 88933-submit@bugs.debian.org id=B88933.103618603130439 (code B ref 88933); Fri, 01 Nov 2002 21:33:03 GMT Sender: renard Message-ID: <3DC2F243.948231CB@faubourg.org> Date: Fri, 01 Nov 2002 22:29:39 +0100 From: reno X-Mailer: Mozilla 4.77 [fr] (X11; U; Linux 2.4.18-k6 i586) X-Accept-Language: en MIME-Version: 1.0 To: 88933@bugs.debian.org Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Delivered-To: 88933@bugs.debian.org X-Spam-Status: No, hits=1.2 required=5.0 tests=SPAM_PHRASE_00_01,USER_AGENT_MOZILLA_XM,X_ACCEPT_LANG version=2.41 X-Spam-Level: * hi, I experience the same problem but i must add that even if the mount succeeds, smbfs options are discarded. Here are some output from the mount command (with debug level 4) in 5 different fstab scenario which show clearly the problem and explain the error message in the log. In each scenario a share is mounted with codepage cp850 that allow me to verify if this smbfs specific option is interpreted or not. 1. root mount with option debug=4 : mount options and smbfs options are correctly interpreted 2. root mount with options defaults,debug=4 : mount options and smbfs options are correctly interpreted 3. root mount with options user,debug=4 : mount options are correctly interpreted but smbfs options are ignored 4. user renard mount with options user,debug=4 : mount options are correctly interpreted but smbfs options are ignored 5. root mount with options noauto,debug=4 : mount options are correctly interpreted but smbfs options are ignored 1. debug, iocharset and codepage options are correctly interpreted (é character is shown): (/etc/fstab) //cabinet/reno /mnt/reno smbfs debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4590: session request ok 4590: session setup ok 4590: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 télé 2. defaults, debug, iocharset and codepage options are correctly interpreted : (/etc/fstab) //cabinet/reno /mnt/reno smbfs defaults,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4625: session request ok 4625: session setup ok 4625: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 télé 3. user and debug are correctly interpreted but iocharset and codepage are ignored (é character are replaced by ?) : (/etc/fstab) //cabinet/reno /mnt/reno smbfs user,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noexec,nosuid,nodev,user,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4631: session request ok 4631: session setup ok 4631: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 t?l? (/var/log/kern.log) Nov 1 21:25:12 muscotte kernel: smbfs: Unrecognized mount option noexec 4. here i verify that user option is correctly interpreted by mounting the share with the normal user renard : root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# exit exit renard@muscotte:/mnt$ mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noexec,nosuid,nodev,user,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4640: session request ok 4640: session setup ok 4640: tconx ok renard@muscotte:/mnt$ ls -l reno -rwxr-xr-x 1 renard renard 0 nov 1 21:18 t?l? renard@muscotte:/mnt$ umount reno (/var/log/kern.log) Nov 1 21:27:18 muscotte kernel: smbfs: Unrecognized mount option noexec 4. noauto and debug are correctly interpreted but iocharset and codepage are ignored : (/etc/fstab) //cabinet/reno /mnt/reno smbfs noauto,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 renard@muscotte:/mnt$ umount reno renard@muscotte:/mnt$ su Password: root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noauto,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4652: session request ok 4652: session setup ok 4652: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 t?l? (/var/log/kern.log) Nov 1 21:32:16 muscotte kernel: smbfs: Unrecognized mount option noauto Conclusion : It seems that the options from fstab are correctly interpreted but are sometimes (when using user and/or noauto options) passed to smbmount (passthrough) which do not understand them and then ignore them. Hope that this will help, reno.   Acknowledgement sent to reno <reno@faubourg.org>:
Extra info received and forwarded to list. Copy sent to peloy@debian.org (Eloy A. Paris), samba@packages.qa.debian.org.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: reno Subject: Bug#88933: Info received (was smbfs specific options are discarded when using user, users or noauto options in fstab.) Message-ID: In-Reply-To: <3DC2F243.948231CB@faubourg.org> References: <3DC2F243.948231CB@faubourg.org> X-Debian-PR-Message: ack-info 88933 Disabled-Doogie-Reply-To: 88933@bugs.debian.org Thank you for the additional information you have supplied regarding this problem report. It has been forwarded to the developer(s) and to the developers mailing list to accompany the original report. Your message has been sent to the package maintainer(s): peloy@debian.org (Eloy A. Paris) If you wish to continue to submit further information on your problem, please send it to 88933@bugs.debian.org, as before. Please do not reply to the address at the top of this message, unless you wish to report a problem with the Bug-tracking system. Debian bug tracking system administrator (administrator, Debian Bugs database)   Received: (at 88933) by bugs.debian.org; 1 Nov 2002 21:27:11 +0000 From reno@faubourg.org Fri Nov 01 15:27:10 2002 Return-path: Received: from faubourg.org [62.4.18.67] by master.debian.org with smtp (Exim 3.12 1 (Debian)) id 187jJr-0007uh-00; Fri, 01 Nov 2002 15:27:08 -0600 Received: (qmail 22881 invoked from network); 1 Nov 2002 21:35:48 -0000 Received: from unknown (HELO faubourg.org) (192.168.0.15) by cabinet.faubourg with SMTP; 1 Nov 2002 21:35:48 -0000 Sender: renard Message-ID: <3DC2F243.948231CB@faubourg.org> Date: Fri, 01 Nov 2002 22:29:39 +0100 From: reno X-Mailer: Mozilla 4.77 [fr] (X11; U; Linux 2.4.18-k6 i586) X-Accept-Language: en MIME-Version: 1.0 To: 88933@bugs.debian.org Subject: smbfs specific options are discarded when using user, users or noauto options in fstab. Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Delivered-To: 88933@bugs.debian.org X-Spam-Status: No, hits=1.2 required=5.0 tests=SPAM_PHRASE_00_01,USER_AGENT_MOZILLA_XM,X_ACCEPT_LANG version=2.41 X-Spam-Level: * hi, I experience the same problem but i must add that even if the mount succeeds, smbfs options are discarded. Here are some output from the mount command (with debug level 4) in 5 different fstab scenario which show clearly the problem and explain the error message in the log. In each scenario a share is mounted with codepage cp850 that allow me to verify if this smbfs specific option is interpreted or not. 1. root mount with option debug=4 : mount options and smbfs options are correctly interpreted 2. root mount with options defaults,debug=4 : mount options and smbfs options are correctly interpreted 3. root mount with options user,debug=4 : mount options are correctly interpreted but smbfs options are ignored 4. user renard mount with options user,debug=4 : mount options are correctly interpreted but smbfs options are ignored 5. root mount with options noauto,debug=4 : mount options are correctly interpreted but smbfs options are ignored 1. debug, iocharset and codepage options are correctly interpreted (é character is shown): (/etc/fstab) //cabinet/reno /mnt/reno smbfs debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4590: session request ok 4590: session setup ok 4590: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 télé 2. defaults, debug, iocharset and codepage options are correctly interpreted : (/etc/fstab) //cabinet/reno /mnt/reno smbfs defaults,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4625: session request ok 4625: session setup ok 4625: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 télé 3. user and debug are correctly interpreted but iocharset and codepage are ignored (é character are replaced by ?) : (/etc/fstab) //cabinet/reno /mnt/reno smbfs user,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noexec,nosuid,nodev,user,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_lmhosts: Attempting lmhosts lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4631: session request ok 4631: session setup ok 4631: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 t?l? (/var/log/kern.log) Nov 1 21:25:12 muscotte kernel: smbfs: Unrecognized mount option noexec 4. here i verify that user option is correctly interpreted by mounting the share with the normal user renard : root@muscotte:/mnt# umount reno/ root@muscotte:/mnt# exit exit renard@muscotte:/mnt$ mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noexec,nosuid,nodev,user,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4640: session request ok 4640: session setup ok 4640: tconx ok renard@muscotte:/mnt$ ls -l reno -rwxr-xr-x 1 renard renard 0 nov 1 21:18 t?l? renard@muscotte:/mnt$ umount reno (/var/log/kern.log) Nov 1 21:27:18 muscotte kernel: smbfs: Unrecognized mount option noexec 4. noauto and debug are correctly interpreted but iocharset and codepage are ignored : (/etc/fstab) //cabinet/reno /mnt/reno smbfs noauto,debug=4,iocharset=iso8859-1,codepage=cp850,username=reno,password=pass 0 0 renard@muscotte:/mnt$ umount reno renard@muscotte:/mnt$ su Password: root@muscotte:/mnt# mount reno/ opts: iocharset=iso8859-1 opts: codepage=cp850 opts: username=reno opts: password=pass passthrough options 'noauto,iocharset=iso8859-1,codepage=cp850' mount.smbfs started (version 2.2.3a-6 for Debian) added interface ip=192.168.0.15 bcast=192.168.0.255 nmask=255.255.255.0 resolve_hosts: Attempting host lookup for name cabinet<0x20> Connecting to 192.168.0.12 at port 139 4652: session request ok 4652: session setup ok 4652: tconx ok root@muscotte:/mnt# ls -l reno -rwxr-xr-x 1 root root 0 nov 1 21:18 t?l? (/var/log/kern.log) Nov 1 21:32:16 muscotte kernel: smbfs: Unrecognized mount option noauto Conclusion : It seems that the options from fstab are correctly interpreted but are sometimes (when using user and/or noauto options) passed to smbmount (passthrough) which do not understand them and then ignore them. Hope that this will help, reno.   Reply sent to Noèl Köthe <noel@debian.org>:
You have taken responsibility.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: =?UTF-8?Q?No=C3=A8l_?= =?UTF-8?Q?K=C3=B6the?= Cc: peloy@debian.org (Eloy A. Paris) Subject: Bug#88933: marked as done (options noauto and user cause an error message) Message-ID: In-Reply-To: <1129575752.16088.18.camel@localhost.localdomain> References: <1129575752.16088.18.camel@localhost.localdomain> Precedence: bulk X-Debian-PR-Message: closed 88933 X-Debian-PR-Package: smbfs X-Debian-PR-Keywords: Your message dated Mon, 17 Oct 2005 21:02:32 +0200 with message-id <1129575752.16088.18.camel@localhost.localdomain> and subject line smbmount options has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------------------------------- Received: (at submit) by bugs.debian.org; 8 Mar 2001 14:55:04 +0000 From kilian@koepsell.de Thu Mar 08 08:55:04 2001 Return-path: Received: from dialin4.aei-potsdam.mpg.de (chebang) [::ffff:194.94.224.233] by master.debian.org with esmtp (Exim 3.12 1 (Debian)) id 14b1ok-0005BJ-00; Thu, 08 Mar 2001 08:55:03 -0600 Received: from kilian by chebang with local (Exim 3.20 #1 (Debian)) id 14b1oi-0000UM-00; Thu, 08 Mar 2001 15:55:00 +0100 To: submit@bugs.debian.org Cc: kilian@koepsell.de From: Kilian Koepsell Subject: options noauto and user cause an error message X-Mailer: bug-buddy 1.2 Message-Id: Date: Thu, 08 Mar 2001 15:55:00 +0100 Delivered-To: submit@bugs.debian.org Package: smbfs Severity: normal Version: 2.0.7-4 Synopsis: options noauto and user cause an error message Class: sw-bug Distribution: Debian testing/unstable System: Linux 2.4.0 i686 unknown Description: i want to include the information for a windows share in my fstab file, but i don't want to mount it automatically. for other filesystem types this works with the option 'noauto'. furthermore i would like to be able to mount the share as non-root. for other filsystem types this works with the option 'user'. both options cause an error message: ------------------------------------------ /etc/fstab: //r2d2/labor /mnt/r2d2 smbfs rw,noauto,username=kilian error message: smbfs: Unrecognized mount option noauto actually, i just found out, that the error message does only appear on the console, not in a x-terminal. the mounting succeeds, anyway. --------------------------------------- Received: (at 59987-done) by bugs.debian.org; 17 Oct 2005 19:02:38 +0000 From noel@debian.org Mon Oct 17 12:02:38 2005 Return-path: Received: from h02.hostsharing.net (pomo.hostsharing.net) [212.21.77.2] by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1ERaFq-00067t-00; Mon, 17 Oct 2005 12:02:38 -0700 Received: from localhost (dslb-084-063-012-160.pools.arcor-ip.net [84.63.12.160]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pomo.hostsharing.net (Postfix) with ESMTP id BF292A002CA for <59987-done@bugs.debian.org>; Mon, 17 Oct 2005 21:02:41 +0200 (CEST) Subject: smbmount options From: =?ISO-8859-1?Q?No=E8l_K=F6the?= To: 59987-done@bugs.debian.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ZdN5Eyycd7GhML+riaNR" Organization: Debian GNU/Linux, www.debian.org Date: Mon, 17 Oct 2005 21:02:32 +0200 Message-Id: <1129575752.16088.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Delivered-To: 59987-done@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 --=-ZdN5Eyycd7GhML+riaNR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I tried to reproduce this old bug report http://bugs.debian.org/59987 (uhh below 100000;)): /etc/fstab: //localhost/tmp /testdir smbfs username=3Dnk,uid=3D1000,user,noauto drwxr-xr-x 1 nk nk 4096 2005-10-17 20:47 /testdir/ $ mount /testdir/ Password: $ df ... //localhost/tmp 93745152 59402240 34342912 64% /testdir So with samba 3.0.14a the reported problem is not there anymore.:) --=20 No=C3=A8l K=C3=B6the Debian GNU/Linux, www.debian.org --=-ZdN5Eyycd7GhML+riaNR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDU/VI9/DnDzB9Vu0RAgYpAJ9QxgAokdotK1oiZuMBGIE/JNhJ4gCeJTcX y1L24Kd5f2k2aALTtd7Vg2E= =K7yO -----END PGP SIGNATURE----- --=-ZdN5Eyycd7GhML+riaNR--   Notification sent to Kilian Koepsell <kilian@koepsell.de>:
Bug acknowledged by developer.   -t  X-Loop: owner@bugs.debian.org From: owner@bugs.debian.org (Debian Bug Tracking System) To: Kilian Koepsell Subject: Bug#88933 acknowledged by developer (smbmount options) Message-ID: In-Reply-To: References: <1129575752.16088.18.camel@localhost.localdomain> X-Debian-PR-Message: they-closed 88933 X-Debian-PR-Package: smbfs X-Debian-PR-Keywords: Reply-To: 88933@bugs.debian.org This is an automatic notification regarding your Bug report #88933: options noauto and user cause an error message, which was filed against the smbfs package. It has been closed by one of the developers, namely Noèl Köthe . Their explanation is attached below. If this explanation is unsatisfactory and you have not received a better one in a separate message then please contact the developer, by replying to this email. Debian bug tracking system administrator (administrator, Debian Bugs database) Received: (at 59987-done) by bugs.debian.org; 17 Oct 2005 19:02:38 +0000 From noel@debian.org Mon Oct 17 12:02:38 2005 Return-path: Received: from h02.hostsharing.net (pomo.hostsharing.net) [212.21.77.2] by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1ERaFq-00067t-00; Mon, 17 Oct 2005 12:02:38 -0700 Received: from localhost (dslb-084-063-012-160.pools.arcor-ip.net [84.63.12.160]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pomo.hostsharing.net (Postfix) with ESMTP id BF292A002CA for <59987-done@bugs.debian.org>; Mon, 17 Oct 2005 21:02:41 +0200 (CEST) Subject: smbmount options From: =?ISO-8859-1?Q?No=E8l_K=F6the?= To: 59987-done@bugs.debian.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ZdN5Eyycd7GhML+riaNR" Organization: Debian GNU/Linux, www.debian.org Date: Mon, 17 Oct 2005 21:02:32 +0200 Message-Id: <1129575752.16088.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Delivered-To: 59987-done@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 --=-ZdN5Eyycd7GhML+riaNR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I tried to reproduce this old bug report http://bugs.debian.org/59987 (uhh below 100000;)): /etc/fstab: //localhost/tmp /testdir smbfs username=3Dnk,uid=3D1000,user,noauto drwxr-xr-x 1 nk nk 4096 2005-10-17 20:47 /testdir/ $ mount /testdir/ Password: $ df ... //localhost/tmp 93745152 59402240 34342912 64% /testdir So with samba 3.0.14a the reported problem is not there anymore.:) --=20 No=C3=A8l K=C3=B6the Debian GNU/Linux, www.debian.org --=-ZdN5Eyycd7GhML+riaNR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDU/VI9/DnDzB9Vu0RAgYpAJ9QxgAokdotK1oiZuMBGIE/JNhJ4gCeJTcX y1L24Kd5f2k2aALTtd7Vg2E= =K7yO -----END PGP SIGNATURE----- --=-ZdN5Eyycd7GhML+riaNR--   Received: (at 59987-done) by bugs.debian.org; 17 Oct 2005 19:02:38 +0000 From noel@debian.org Mon Oct 17 12:02:38 2005 Return-path: Received: from h02.hostsharing.net (pomo.hostsharing.net) [212.21.77.2] by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1ERaFq-00067t-00; Mon, 17 Oct 2005 12:02:38 -0700 Received: from localhost (dslb-084-063-012-160.pools.arcor-ip.net [84.63.12.160]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by pomo.hostsharing.net (Postfix) with ESMTP id BF292A002CA for <59987-done@bugs.debian.org>; Mon, 17 Oct 2005 21:02:41 +0200 (CEST) Subject: smbmount options From: =?ISO-8859-1?Q?No=E8l_K=F6the?= To: 59987-done@bugs.debian.org Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-ZdN5Eyycd7GhML+riaNR" Organization: Debian GNU/Linux, www.debian.org Date: Mon, 17 Oct 2005 21:02:32 +0200 Message-Id: <1129575752.16088.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 Delivered-To: 59987-done@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no version=2.60-bugs.debian.org_2005_01_02 --=-ZdN5Eyycd7GhML+riaNR Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I tried to reproduce this old bug report http://bugs.debian.org/59987 (uhh below 100000;)): /etc/fstab: //localhost/tmp /testdir smbfs username=3Dnk,uid=3D1000,user,noauto drwxr-xr-x 1 nk nk 4096 2005-10-17 20:47 /testdir/ $ mount /testdir/ Password: $ df ... //localhost/tmp 93745152 59402240 34342912 64% /testdir So with samba 3.0.14a the reported problem is not there anymore.:) --=20 No=C3=A8l K=C3=B6the Debian GNU/Linux, www.debian.org --=-ZdN5Eyycd7GhML+riaNR Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDU/VI9/DnDzB9Vu0RAgYpAJ9QxgAokdotK1oiZuMBGIE/JNhJ4gCeJTcX y1L24Kd5f2k2aALTtd7Vg2E= =K7yO -----END PGP SIGNATURE----- --=-ZdN5Eyycd7GhML+riaNR--   Bug reopened, originator not changed. Request was from Steve Langasek <vorlon@debian.org> to control@bugs.debian.org.   Received: (at control) by bugs.debian.org; 18 Oct 2005 23:22:08 +0000 From vorlon@debian.org Tue Oct 18 16:22:08 2005 Return-path: Received: from dsl093-039-086.pdx1.dsl.speakeasy.net (tennyson.dodds.net) [66.93.39.86] by spohr.debian.org with esmtp (Exim 3.36 1 (Debian)) id 1ES0mW-0004OO-00; Tue, 18 Oct 2005 16:22:08 -0700 Received: by tennyson.dodds.net (Postfix, from userid 1000) id 0752C7014; Tue, 18 Oct 2005 16:22:06 -0700 (PDT) Date: Tue, 18 Oct 2005 16:22:06 -0700 From: Steve Langasek To: Eric Lammerts , 59987@bugs.debian.org Cc: noel@debian.org Subject: Re: Bug#59987: acknowledged by developer (smbmount options) Message-ID: <20051018232206.GC22391@tennyson.dodds.net> References: <1129575752.16088.18.camel@localhost.localdomain> <435404FF.4070601@lammerts.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5QAgd0e35j3NYeGe" Content-Disposition: inline In-Reply-To: <435404FF.4070601@lammerts.org> User-Agent: Mutt/1.5.9i Delivered-To: control@bugs.debian.org X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.5 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER, SUBJ_HAS_SPACES,VALID_BTS_CONTROL autolearn=no version=2.60-bugs.debian.org_2005_01_02 X-CrossAssassin-Score: 2 --5QAgd0e35j3NYeGe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable reopen 59987 thanks On Mon, Oct 17, 2005 at 04:09:35PM -0400, Eric Lammerts wrote: > Debian Bug Tracking System wrote: > >I tried to reproduce this old bug report http://bugs.debian.org/59987 > >(uhh below 100000;)): > >/etc/fstab: > >//localhost/tmp /testdir smbfs username=3D3Dnk,uid=3D3D1000,user,= noauto > >drwxr-xr-x 1 nk nk 4096 2005-10-17 20:47 /testdir/ > >$ mount /testdir/ > >Password: > >$ df > >... > >//localhost/tmp 93745152 59402240 34342912 64% /testdir > >So with samba 3.0.14a the reported problem is not there anymore.:) > I tried it too, but still got the error. If I look at my original patch i= t=20 > seems the bug is triggered when the directory is not owned by the user. S= o=20 > could you try again with /testdir owned by root? That should be allowed,= =20 > shouldn't it? Right; the fundamental problem here is that smbfs tries to support two completely different security models for who's allowed to mount what, and they occasionally step on each other. If there is an fstab entry for the mount, then yes, users should be allowed to mount over mountpoints that are owned by root. If there is no fstab entry for the mount (i.e., the user calls smbmount instead of mount and smbmnt is suid), then users should only be allowed to mount over mountpoints that they own. This bug has gone unfixed because the code needs some rather deep reorganization to do the right thing. Eric, the patch you submitted isn't sufficient because it introduces a security hole in the smbmount use case. The bug may never actually get fixed in smbfs; odds are better that this will be dealt with in cifs instead. Cheers, --=20 Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. vorlon@debian.org http://www.debian.org/ --5QAgd0e35j3NYeGe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDVYOeKN6ufymYLloRAuDzAKCPwnd9AV/18FvHAc6w+LXi/ukyIACdFts/ FGCTqaKumeOEnQlwDXT152M= =YPHc -----END PGP SIGNATURE----- --5QAgd0e35j3NYeGe--