Bug 10078 - when fstab specifies sec=none, mount reports sec=ntlm
Summary: when fstab specifies sec=none, mount reports sec=ntlm
Status: RESOLVED FIXED
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: kernel fs (show other bugs)
Version: 2.6
Hardware: All All
: P5 minor
Target Milestone: ---
Assignee: Steve French
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 04:40 UTC by Felix Miata
Modified: 2015-09-12 00:50 UTC (History)
1 user (show)

See Also:


Attachments
patch to display sec=none properly in /proc/mounts (1.08 KB, patch)
2015-09-12 00:48 UTC, Steve French
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Miata 2013-08-11 04:40:20 UTC
In openSUSE 12.3 running kernel 3.7.10 with cifs-utils-5.9-3.4.1, I needed no sec= option in fstab to mount my Dreambox DVB receiver's shares. The Dreambox reports samba-3.0.37-r8, which is not upgradeable, and does not function with security = user in its smb.conf. The same fstab entry used in openSUSE 13.1M4 running kernel 3.10.1 with cifs-utils-5.9-6.4 fails with "mount error(13): Permission denied; Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)". To mount successfully I found it necessary to add sec=none to the fstab options. Now, when sec is specified to be none, and the share mounted, the mount command reports sec=ntlm.
Comment 1 Steve French 2015-09-12 00:48:18 UTC
This code has changed since that older kernel, but there was still a problem (sec=none would not be displayed at all when specified on mount for cifs mounts in /proc/mounts).

The attached patch fixes that so /proc/mounts now shows "sec=none" in mount options when specified either on mount or in fstab
Comment 2 Steve French 2015-09-12 00:48:59 UTC
Created attachment 11434 [details]
patch to display sec=none properly in /proc/mounts
Comment 3 Steve French 2015-09-12 00:49:54 UTC
Will be in 4.3 kernel