[Bug 623763] New: Samba ignores "credentials" option in </etc/fstab> or mount command
http://bugzilla.novell.com/show_bug.cgi?id=623763 http://bugzilla.novell.com/show_bug.cgi?id=623763#c0 Summary: Samba ignores "credentials" option in </etc/fstab> or mount command Classification: openSUSE Product: openSUSE 11.3 Version: Final Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Samba AssignedTo: samba-maintainers@SuSE.de ReportedBy: jimoe@sohnen-moe.com QAContact: samba-maintainers@SuSE.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.6) Gecko/20100626 SUSE/3.6.6-1.2 Firefox/3.6.6 Linux 2.6.34-12-desktop x86_64 smbd: 3.5.4-4.1-2382-SUSE-SL11.3 I updated from openSuse v11.2 to v11.3. The SMB services are no longer mounted. The reason is that the "credentials" (or "cred") option in </etc/fstab> is ignored, and also when using the mount command. If I remove "credentials" and add "username=xxx,password=yyy", the services are mounted. I cannot tell if it is the "credentials" option or something about the password file (which has 600 permission). There were no messages in <dmesg> about the credentials file, only that the mount failed because of incorrect authentication. The same applies to </var/log/samba/log.smbd>. Note: I decided to make this severity level Major because of the security implications; the passwords are in plain text in a world readable file. See also <http://forums.opensuse.org/english/get-help-here/network-internet/442214-samba-ignores-credentials-option.html>. Reproducible: Always Steps to Reproduce: 1. Use the "credentials" option in </etc/fstab> to mount remote SMB services, or "mount.cifs //service-name <mount-point> -o credentials=<path-to-cred-file>". 2. Install or upgrade to openSuse v11.3 Actual Results: The services are not mounted at startup or with the mount command. Expected Results: The services are mounted at startup or with the mount command. Here are two typical fstab entries. (The first is an OS/2 server that needs a lot of cajoling.) //sma-server1/graphics /w cifs credentials=/home/sma-user4/.smb/.smbpw,uid=sma-user4,gid=users,sec=lanman,file_mode=0666,dir_mode=0777,servern=SMA-SERVER1,nocase,noserverino 0 0 //sma-nas-01/photos /v cifs credentials=/home/sma-user4/.smb/.smbpw,uid=jmoe,gid=users 0 0 </home/sma-user4/.smb/.smbpw> looks like this: username=xxx password=yyy -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=623763 http://bugzilla.novell.com/show_bug.cgi?id=623763#c1 Lars Müller <lmuelle@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |samba-maintainers@SuSE.de AssignedTo|samba-maintainers@SuSE.de |sjayaraman@novell.com --- Comment #1 from Lars Müller <lmuelle@novell.com> 2010-07-20 11:00:51 UTC --- Please consider to use /etc/samba/cifstab as this file has a permission set of 0600 by default. Independent of the available workaround this issue needs to be addressed by an update. IIRC a fix got already merged upstream and got merged to the cifs-utils package. See network:/samba:/STABLE cifs-utils.chnages Wed Jul 7 08:02:22 UTC 2010 - sjayaraman@suse.de - mount.cifs: fix parsing of "cred=" option.· Passing to Suresh as he knows if this is the same issue and as he has to push the required change into the 11.3 update process. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=623763 http://bugzilla.novell.com/show_bug.cgi?id=623763#c2 Suresh Jayaraman <sjayaraman@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #2 from Suresh Jayaraman <sjayaraman@novell.com> 2010-07-20 16:42:00 UTC --- yes, the above mentioned commit fixes the problem and I'll ensure the fix gets in to the upcoming update.. *** This bug has been marked as a duplicate of bug 618877 *** http://bugzilla.novell.com/show_bug.cgi?id=618877 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=623763 https://bugzilla.novell.com/show_bug.cgi?id=623763#c3 Swamp Workflow Management <swamp@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:11.3:35213 --- Comment #3 from Swamp Workflow Management <swamp@suse.com> 2010-08-23 11:40:17 UTC --- Update released for: cifs-utils, cifs-utils-debuginfo, cifs-utils-debugsource Products: openSUSE 11.3 (debug, i586, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=623763 http://bugzilla.novell.com/show_bug.cgi?id=623763#c4 --- Comment #4 from Bernhard Wiedemann <bwiedemann@suse.com> --- This is an autogenerated message for OBS integration: This bug (623763) was mentioned in https://build.opensuse.org/request/show/45691 11.3:Test / cifs-utils https://build.opensuse.org/request/show/61456 Factory / cifs-utils -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com